Hi, All
I have a very strange situation.
I have a web service. The web service uses policy for username/password
authentication.
If I use client stub to invoke the service (adb style), the fault
message is reported back correctly to client as SOAP payload.
If I use AXIOM to invoke the service, the fault message is not sent back
as SOAP message. Instead an error html page is
sent to client from Tomcat.
I checked the message sent from client to server. The only difference is
the action parameter.
-----------stub invocation (action is a parameter to
Content-Type)--------------
POST /cmdportal/services/programws HTTP/1.1
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_6D90727ED5A413F06B1224668252054;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="application/soap+xml"; action="urn:executeProgram"
User-Agent: Axis2
Host: 127.0.0.1:9090
Transfer-Encoding: chunked
----------AXIOM invocation(action is SOAPAction header)------------------
POST /cmdportal/services/programws HTTP/1.1
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_61DF8EDCB8331CE4B71224668218401;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml"
SOAPAction: "urn:executeProgram"
User-Agent: Axis2
Host: 127.0.0.1:9090
Transfer-Encoding: chunked
When using AXIOM invocation, the error message from tomcat console is "
org.apache.axis2.AxisFault: Error in extracting message properties". I
traced it to "
org.apache.ws.security.WSSecurityException: Error in converting SOAP
Envelope to Document; nested exception is:
org.apache.axiom.soap.SOAPProcessingException: Only Characters are
allowed here"
I use this code to set the SOAP
action:sc.getOptions().setAction("urn:executeProgram") for AXIOM invocation.
Does anyone know what the error in AXIOM invocation stems from? Is there
a workround (to mimic the adb invocation)?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]