|
Hello all,
Please review my following code and let me know why SOAPAction header is = not sent to the destination. When I send a message, shouldn't the headers of = the soap message be sent as part of the HTTP header information? try { SOAPConnectionFactory scf =3D SOAPConnectionFactory.newInstance(); SOAPConnection connection =3D scf.createConnection(); MessageFactory msgFactory =3D MessageFactory.newInstance(); SOAPMessage msg =3D msgFactory.createMessage(); SOAPEnvelope envelope =3D msg.getSOAPPart().getEnvelope(); MimeHeaders headers =3D msg.getMimeHeaders(); headers.addHeader( "SOAPAction", "http://www.abc.com/blah"); SOAPBody body =3D envelope.getBody(); javax.xml.soap.SOAPBodyElement bodyElement =3D body.addBodyElement(envelope.createName("GetGroup", "", "http://www.abc.com/XServer") ); // other elements population here... msg.saveChanges(); URLEndpoint endpoint =3D new = URLEndpoint("http://localhost:8080/XServices/abc.asmx"); msg.writeTo(System.out); SOAPMessage reply =3D connection.call(msg, endpoint); // the call at the destination has a blank SOAPAction?? reply.writeTo(System.out); } catch (......) { } This is a very urgent situation. Any help or guidance is really = appreciated. Regards Sri |
- Re: SOAP Action header does not get passed Srilekha Mudumbai
- Re: SOAP Action header does not get passed Srilekha Mudumbai
- Re: SOAP Action header does not get passed J . Sugrue
- Re: SOAP Action header does not get passed Srilekha Mudumbai
