Hi Deepal Jayasinghe,
in client side; i don't know how to engage addressing.
if i add this line :
stub._getServiceClient().engageModule(new QName("addressing"));
i have an exception :
org.apache.axis2.AxisFault: Unable to engage module : addressing
at
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:298)
at com.centile.Test.Main.main(Main.java:26)
i think it's good on server side because when i send with soapUI:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<wsa:Address>
http://www.w3.org/2005/08/addressing/anonymous
</wsa:Address>
<soapenv:Header/>
<soapenv:Body/>
</soapenv:Envelope>
Answer is
----------
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:D69359D3215FB269AA1179997492819</wsa:MessageID>
<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>com.ctc.wstx.exc.WstxParsingException: Undeclared
namespace prefix "wsa"
at [row,col {unknown-source}]: [2,16]</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
How to engage addressing in client ?
thanks
Fabrice
Deepal Jayasinghe a écrit :
Hi Fabrice ,
You need to engage addressing in both client and server side.
Thanks
Deepal
Hi,
I create a "Web Service"(axis2-1.1.1) and i want to use SoapSession
but I never receive a servicegroupid.
i create a Stub (WebServiceWCPStub) with $AXIS2_HOME/bin/wsdl2java.sh
and my client is:
try{
WebServiceWCPStub stub = new
WebServiceWCPStub("http://localhost:8080/axis2/services/WebServiceWCP?wsdl");
stub._getServiceClient().getOptions().setManageSession(true);
stub.test();
stub.test();
stub.test();
} catch(Exception e){
e.printStackTrace();
System.out.println("\n\n\n");
}
}
in my Service in axis2 running under tomcat.5.5.23 i have in my
services.xml in first line <service name="WebServiceWCP"
scope="SOAPSession">
in my log file : logs/catalina.out
the first message send to server is :
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header
/><soapenv:Body><test /></soapenv:Body></soapenv:Envelope>
the first message send to client is :
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header
/><soapenv:Body><ns:testResponse
xmlns:ns="http://wcp.ws.centile.com/xsd"><ns:return>true</ns:return></ns:testResponse></soapenv:Body></soapenv:Envelope>
why i don't receive a servicegroupid ?
Thanks
Fabrice
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
begin:vcard
fn:Fabrice Airault
n:Airault;Fabrice
org:Centile
email;internet:[EMAIL PROTECTED]
tel;work:+33 4 97 23 12 94
x-mozilla-html:FALSE
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]