[prev in list] [next in list] [prev in thread] [next in thread]
List: wss4j-dev
Subject: RE: WSDoAllSender and Axis TypeMapping
From: "Dittmann, Werner (NSN - DE/Munich)" <werner.dittmann () nsn ! com>
Date: 2009-06-23 11:59:44
Message-ID: D1FA621591E24549BA3C339EC9C2BC7201EB7773 () DEMUEXC014 ! nsn-intra ! net
[Download RAW message or body]
WSDoAllSender uses "getAsDocument(...)" to get the SOAP request as XML DOM to be able
to process it. The involves "serialization" of the Java data types into XML. The \
getAsDocument(...) is an Axis 1 function thus WSS4J cannot do much about it. Did you \
check if there is a known issues with this function in Axis 1?
Regards,
Werener
________________________________
From: ext Vitali Heinrich [mailto:vitali.heinrich@googlemail.com]
Sent: Tuesday, June 23, 2009 7:46 AM
To: wss4j-dev@ws.apache.org
Subject: WSDoAllSender and Axis TypeMapping
Hi All,
I try to integrate wss4j in OFBiz. OFBiz uses Axis(1) 1.4 and all (web) services are \
described by ofbiz engine. So I have no chance to create a .wsdd file. But it´s not \
bad, because I can implement a client in code style. Now my problem:
My service needs as input a Bean (for example MyBean). So I register it in \
TypeMaping and it works fine.
But when I set WSDoAllSender as ClientHandler, MyBean could not be finding in \
TypeMapping anymore.
Here some snippets:
service = new Service();
call = (Call) service.createCall();
call.setClientHandlers(new WSDoAllSender(), null);
call.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.SIGNATURE);
call.setProperty(WSHandlerConstants.USER, "user");
call.setProperty(WSHandlerConstants.SIG_KEY_ID, "DirectReference");
call.setProperty(WSHandlerConstants.PW_CALLBACK_CLASS,PasswordProvider.class.getName() \
);
call.setProperty(WSHandlerConstants.SIG_PROP_FILE, "client-provider.properties");
call.setProperty(WSHandlerConstants.MUST_UNDERSTAND, "0");
/* inputObject = my.package.MyBean */
/* inputObjectsName = "myBean" */
QName inputQName = new QName(registerPrefix,inputObject.getClass().getName());
call.addParameter(inputObjectsName, inputQName, getMode("IN"));
vParams.add(inputObject);
call.registerTypeMapping(inputObject.getClass(),inputQName,
new BeanSerializerFactory(inputObject.getClass(),inputQName),
new BeanDeserializerFactory(inputObject.getClass(),inputQName));
call.invoke(vParams.toArray());
So if the client handler is not set, if works fine.
If it is set to WSDoAllSender I get this exception
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException \
<http://schemas.xmlsoap.org/soap/envelope/%7DServer.generalException>
faultSubcode:
faultString: WSDoAllSender: cannot get SOAP envlope from \
messagejava.io.IOException: No serializer found for class my.package.MyBean in \
registry org.apache.axis.encoding.TypeMappingDelegate@d1e89e
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:WSDoAllSender \
<http://xml.apache.org/axis/%7DstackTrace:WSDoAllSender> : cannot get SOAP envlope \
from messagejava.io.IOException: No serializer found for class my.package.MyBean in \
registry org.apache.axis.encoding.TypeMappingDelegate@d1e89e
at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:159)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:121)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
. . .
This exceptins ist throwing at this place of code (WSDoAllSender.invoke):
/*
* If the message context property conatins a document then this is
* a chained handler.
*/
SOAPPart sPart = (org.apache.axis.SOAPPart) message.getSOAPPart();
if ((doc = (Document) ((MessageContext)reqData.getMsgContext())
.getProperty(WSHandlerConstants.SND_SECURITY)) == null) {
try {
doc = ((org.apache.axis.message.SOAPEnvelope) sPart
.getEnvelope()).getAsDocument();
} catch (Exception e) {
throw new AxisFault(
"WSDoAllSender: cannot get SOAP envlope from message"
+ e);
}
}
Can anybody help me?
Does anybody have some experience in integrating wss4j in ofbiz?
Another question is:
Is it possible to integrate wss4j on server site without a XML file but in code \
style like on the client site?
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3527" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=491105511-23062009><FONT face=Calibri
color=#0000ff>WSDoAllSender uses "getAsDocument(...)" to get the SOAP
request as XML DOM to be able</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491105511-23062009><FONT face=Calibri
color=#0000ff>to process it. The involves "serialization" of the Java data types
into XML. The getAsDocument(...)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491105511-23062009><FONT face=Calibri
color=#0000ff>is an Axis 1 function thus WSS4J cannot do much about it. Did you
check if there is a known</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491105511-23062009><FONT face=Calibri
color=#0000ff>issues with this function in Axis 1?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491105511-23062009><FONT face=Calibri
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=491105511-23062009><FONT face=Calibri
color=#0000ff>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=491105511-23062009><FONT face=Calibri
color=#0000ff>Werener</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ext Vitali Heinrich
[mailto:vitali.heinrich@googlemail.com] <BR><B>Sent:</B> Tuesday, June 23,
2009 7:46 AM<BR><B>To:</B> wss4j-dev@ws.apache.org<BR><B>Subject:</B>
WSDoAllSender and Axis TypeMapping<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi All,</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I</SPAN></FONT><FONT face=Arial
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
</SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">try</SPAN></FONT><FONT face=Arial
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> to
integrate wss4j in OFBiz. OFBiz uses Axis(1) 1.4 and all (web) services are
described by ofbiz engine. So I have no chance to create a .wsdd file. But
it´s not bad, because I can implement a client in code style. Now my
problem:</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">My service needs as input a Bean
(for example MyBean). So I register it in TypeMaping and it works
fine.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">But when I set <FONT
color=black><SPAN style="COLOR: black">WSDoAllSender as ClientHandler, MyBean
could not be finding in TypeMapping anymore.</SPAN></FONT></SPAN></FONT></P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Here some
snippets:</SPAN></FONT></P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">service =
</SPAN></FONT><B><FONT face="Courier New" color=#7f0055 size=2><SPAN
lang=EN-GB
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: rgb(127,0,85); FONT-FAMILY: \
'Courier New'">new</SPAN></FONT></B><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'"> Service();</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">call =
(Call) service.createCall();</SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'"></SPAN></FONT> </P> <P><FONT face="Courier New" color=black size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.setClientHandlers(</SPAN></FONT><B><FONT face="Courier New" \
color=#7f0055 size=2><SPAN lang=EN-GB style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; \
COLOR: rgb(127,0,85); FONT-FAMILY: 'Courier New'">new</SPAN></FONT></B><FONT \
face="Courier New" color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; \
COLOR: black; FONT-FAMILY: 'Courier New'"> WSDoAllSender(), </SPAN></FONT><B><FONT \
face="Courier New" color=#7f0055 size=2><SPAN lang=EN-GB
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: rgb(127,0,85); FONT-FAMILY: \
'Courier New'">null</SPAN></FONT></B><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">);</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.setProperty(WSHandlerConstants.</SPAN></FONT><I><FONT face="Courier New" \
color=#0000c0 size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(0,0,192); \
FONT-STYLE: italic; FONT-FAMILY: 'Courier New'">ACTION</SPAN></FONT></I><FONT \
face="Courier New" color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; \
COLOR: black; FONT-FAMILY: 'Courier New'">, \
WSHandlerConstants.</SPAN></FONT><I><FONT face="Courier New" color=#0000c0 \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(0,0,192); FONT-STYLE: \
italic; FONT-FAMILY: 'Courier New'">SIGNATURE</SPAN></FONT></I><FONT face="Courier \
New" color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; \
FONT-FAMILY: 'Courier New'">);</SPAN></FONT><FONT face="Courier New" size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.setProperty(WSHandlerConstants.</SPAN></FONT><I><FONT face="Courier New" \
color=#0000c0 size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(0,0,192); \
FONT-STYLE: italic; FONT-FAMILY: 'Courier New'">USER</SPAN></FONT></I><FONT \
face="Courier New" color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; \
COLOR: black; FONT-FAMILY: 'Courier New'">, </SPAN></FONT><FONT face="Courier New" \
color=#2a00ff size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(42,0,255); \
FONT-FAMILY: 'Courier New'">"user"</SPAN></FONT><FONT face="Courier New" \
color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; \
FONT-FAMILY: 'Courier New'">);</SPAN></FONT><FONT face="Courier New" size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.setProperty(WSHandlerConstants.</SPAN></FONT><I><FONT face="Courier New" \
color=#0000c0 size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(0,0,192); \
FONT-STYLE: italic; FONT-FAMILY: 'Courier New'">SIG_KEY_ID</SPAN></FONT></I><FONT \
face="Courier New" color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; \
COLOR: black; FONT-FAMILY: 'Courier New'">, </SPAN></FONT><FONT face="Courier New" \
color=#2a00ff size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(42,0,255); \
FONT-FAMILY: 'Courier New'">"DirectReference"</SPAN></FONT><FONT face="Courier New" \
color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; \
FONT-FAMILY: 'Courier New'">);</SPAN></FONT><FONT face="Courier New" size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.setProperty(WSHandlerConstants.</SPAN></FONT><I><FONT face="Courier New" \
color=#0000c0 size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(0,0,192); \
FONT-STYLE: italic; FONT-FAMILY: 'Courier \
New'">PW_CALLBACK_CLASS</SPAN></FONT></I><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">,PasswordProvider.</SPAN></FONT><B><FONT face="Courier New" color=#7f0055 \
size=2><SPAN lang=EN-GB style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: \
rgb(127,0,85); FONT-FAMILY: 'Courier New'">class</SPAN></FONT></B><FONT \
face="Courier New" color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; \
COLOR: black; FONT-FAMILY: 'Courier New'">.getName() );</SPAN></FONT><FONT \
face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: \
'Courier New'"></SPAN></FONT></P> <P><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.setProperty(WSHandlerConstants.</SPAN></FONT><I><FONT face="Courier New" \
color=#0000c0 size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(0,0,192); \
FONT-STYLE: italic; FONT-FAMILY: 'Courier New'">SIG_PROP_FILE</SPAN></FONT></I><FONT \
face="Courier New" color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; \
COLOR: black; FONT-FAMILY: 'Courier New'">, </SPAN></FONT><FONT face="Courier New" \
color=#2a00ff size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(42,0,255); \
FONT-FAMILY: 'Courier New'">"client-provider.properties"</SPAN></FONT><FONT \
face="Courier New" color=black size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; \
COLOR: black; FONT-FAMILY: 'Courier New'">);</SPAN></FONT><FONT face="Courier New" \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier \
New'"></SPAN></FONT></P> <P><FONT face="Courier New" color=black size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.setProperty(WSHandlerConstants.</SPAN></FONT><I><FONT face="Courier New" \
color=#0000c0 size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(0,0,192); \
FONT-STYLE: italic; FONT-FAMILY: 'Courier \
New'">MUST_UNDERSTAND</SPAN></FONT></I><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">, </SPAN></FONT><FONT face="Courier New" color=#2a00ff size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; COLOR: rgb(42,0,255); FONT-FAMILY: 'Courier \
New'">"0"</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB \
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">);</SPAN></FONT><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">/*
inputObject = my.package.MyBean */</SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">/*
inputObjectsName = “myBean” */</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">QName
inputQName = </SPAN></FONT><B><FONT face="Courier New" color=#7f0055
size=2><SPAN lang=EN-GB
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: rgb(127,0,85); FONT-FAMILY: \
'Courier New'">new</SPAN></FONT></B><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'"> QName(registerPrefix,inputObject.getClass().getName());</SPAN></FONT><FONT
face="Courier New" size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.addParameter(inputObjectsName, inputQName, <I><SPAN
style="FONT-STYLE: italic">getMode</SPAN></I>(</SPAN></FONT><FONT
face="Courier New" color=#2a00ff size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: rgb(42,0,255); FONT-FAMILY: 'Courier \
New'">"IN"</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">));</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">vParams.add(inputObject);</SPAN></FONT><FONT face="Courier New" size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT> </P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">call.registerTypeMapping(inputObject.getClass(),inputQName,</SPAN></FONT><FONT \
face="Courier New" size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: \
'Courier New'"></SPAN></FONT></P> <P><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'"> \
</SPAN></FONT><B><FONT face="Courier New" color=#7f0055 size=2><SPAN lang=EN-GB
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: rgb(127,0,85); FONT-FAMILY: \
'Courier New'">new</SPAN></FONT></B><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'"> BeanSerializerFactory(inputObject.getClass(),inputQName),</SPAN></FONT><FONT \
face="Courier New" size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'"> \
</SPAN></FONT><B><FONT face="Courier New" color=#7f0055 size=2><SPAN lang=EN-GB
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: rgb(127,0,85); FONT-FAMILY: \
'Courier New'">new</SPAN></FONT></B><FONT face="Courier New" color=black \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'"> BeanDeserializerFactory(inputObject.getClass(),inputQName));</SPAN></FONT></P>
<P><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'"></SPAN></FONT> </P> <P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">call.invoke(</SPAN></FONT><FONT
face="Courier New" color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier \
New'">vParams.toArray()</SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">);</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">So if the client handler is not
set, if works fine.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">If it is set to
</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">WSDoAllSender
</SPAN></FONT><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">I get this
exception</SPAN></FONT></P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'">AxisFault</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'"> faultCode:
{</SPAN></FONT><U><FONT face="Courier New" color=navy size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Courier New'"><A
href="http://schemas.xmlsoap.org/soap/envelope/%7DServer.generalException"
target=_blank>http://schemas.xmlsoap.org/soap/envelope/}Server.generalException</A></SPAN></FONT></U><FONT \
face="Courier New" size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'"> faultSubcode: \
</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'"> faultString:
WSDoAllSender: cannot get SOAP envlope from <U>messagejava.io.IOException</U>:
No serializer found for class my.package.MyBean in registry
org.apache.axis.encoding.TypeMappingDelegate@d1e89e</SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> </SPAN></FONT><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'">faultActor:
</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'"> faultNode:
</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'"> faultDetail:
</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> </SPAN></FONT><FONT face="Courier New" \
color=red size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: \
'Courier New'">{<A href="http://xml.apache.org/axis/%7DstackTrace:WSDoAllSender"
target=_blank>http://xml.apache.org/axis/}stackTrace:WSDoAllSender</A>: cannot
get SOAP envlope from <U>messagejava.io.IOException</U>: No serializer found
for class my.package.MyBean in registry
org.apache.axis.encoding.TypeMappingDelegate@d1e89e</SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> </SPAN></FONT><FONT face="Courier New" \
color=red size=2><SPAN lang=FR style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: \
'Courier New'">at org.apache.ws.axis.security.WSDoAllSender.invoke(</SPAN></FONT><U><FONT \
face="Courier New" color=navy size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Courier \
New'">WSDoAllSender.java:159</SPAN></FONT></U><FONT face="Courier New" color=red \
size=2><SPAN lang=FR style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'">)</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> at \
org.apache.axis.client.AxisClient.invoke(</SPAN></FONT><U><FONT face="Courier New" \
color=navy size=2><SPAN lang=FR style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
'Courier New'">AxisClient.java:121</SPAN></FONT></U><FONT face="Courier New" \
color=red size=2><SPAN lang=FR style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: \
'Courier New'">)</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> </SPAN></FONT><FONT face="Courier New" \
color=red size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: \
'Courier New'">at org.apache.axis.client.Call.invokeEngine(</SPAN></FONT><U><FONT
face="Courier New" color=navy size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Courier \
New'">Call.java:2784</SPAN></FONT></U><FONT face="Courier New" color=red \
size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'">)</SPAN></FONT><FONT face="Courier New" size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> at \
org.apache.axis.client.Call.invoke(</SPAN></FONT><U><FONT face="Courier New" \
color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; \
FONT-FAMILY: 'Courier New'">Call.java:2767</SPAN></FONT></U><FONT face="Courier \
New" color=red size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: red; \
FONT-FAMILY: 'Courier New'">)</SPAN></FONT><FONT face="Courier New" size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> at \
org.apache.axis.client.Call.invoke(</SPAN></FONT><U><FONT face="Courier New" \
color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; \
FONT-FAMILY: 'Courier New'">Call.java:2443</SPAN></FONT></U><FONT face="Courier \
New" color=red size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: red; \
FONT-FAMILY: 'Courier New'">)</SPAN></FONT><FONT face="Courier New" size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> at \
org.apache.axis.client.Call.invoke(</SPAN></FONT><U><FONT face="Courier New" \
color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; \
FONT-FAMILY: 'Courier New'">Call.java:2366</SPAN></FONT></U><FONT face="Courier \
New" color=red size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: red; \
FONT-FAMILY: 'Courier New'">)</SPAN></FONT><FONT face="Courier New" size=2><SPAN \
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P><FONT face="Courier New" color=red size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier \
New'"> at \
org.apache.axis.client.Call.invoke(</SPAN></FONT><U><FONT face="Courier New" \
color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; \
FONT-FAMILY: 'Courier New'">Call.java:1812</SPAN></FONT></U><FONT face="Courier \
New" color=red size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: red; \
FONT-FAMILY: 'Courier New'">)</SPAN></FONT></P> <P><FONT face="Courier New" \
color=red size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: \
'Courier New'">. .
.</SPAN></FONT><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT></P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">This exceptins ist
throwing at this place of code (WSDoAllSender.invoke):</SPAN></FONT></P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: \
Arial"> \
/*<BR> * If the \
message context property conatins a document then this \
is<BR> * a \
chained handler.<BR> \
*/<BR>
SOAPPart sPart = (org.apache.axis.SOAPPart)
message.getSOAPPart();<BR> \
if ((doc = (Document)
((MessageContext)reqData.getMsgContext())<BR> \
.getProperty(WSHandlerConstants.SND_SECURITY)) == null)
{<BR> \
try
{<BR> \
doc = ((org.apache.axis.message.SOAPEnvelope)
sPart<BR> &nb \
sp; \
.getEnvelope())<SPAN
style="BACKGROUND-COLOR: \
rgb(255,255,153)">.getAsDocument()</SPAN>;<BR> \
} catch (Exception e)
{<BR> \
throw new
AxisFault(<BR> &nbs \
p; \
"WSDoAllSender: cannot get SOAP envlope from
message"<BR> \
\
+
e);<BR> \
}<BR>
}<BR></SPAN></FONT></P>
<P><BR><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT></P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"><BR></SPAN></FONT></P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Can anybody help me?
</SPAN></FONT></P>
<P><FONT face=Arial color=black size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">Does anybody have
some experience in integrating wss4j in ofbiz?</SPAN></FONT></P>
<P><BR></P>
<P>Another question is:</P>
<P>Is it possible to integrate wss4j on server site without a XML file but in
code style like on the client site?<BR><FONT face=Arial color=black
size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"></SPAN></FONT><FONT
face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial"></SPAN></FONT></P></DIV><BR><BR></BLOCKQUOTE></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic