I could help you with this if you are referring AXIS to Axis2 :)
Saminda
On Nov 7, 2007 8:44 PM, Hosamath, Viru <[EMAIL PROTECTED]> wrote:
> Hi friends,
>
>
>
> Can any one please help me? this is urgent L
>
> I'm new to webservice, I'm using Axis to communicate web service..
>
>
>
> I have created required clients ,stubs and other objects by using axis
> wsdl2java tool…
>
>
>
> My client code is something like this,
>
>
>
> DemandService demandService = *new* DemandServiceLocator();
>
> URL url = *new* java.net.URL(serviceURL);
>
> DemandServicePortType ds = demandService.getDemandServiceSOAP11port(url);
>
> RemoteReference ref = ds.createRequest(oRequest);
>
>
>
>
>
> I'm not sending any security header with my ws call, how to set security
> header to above code? I would really appreciate your help..
>
>
>
> Thanks in advance -
>
>
>
> Thanks,
>
> Viru
>
>
>
>
>
> ---------------------------------------
>
> AxisFault
>
> faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Client<http://schemas.xmlsoap.org/soap/envelope/%7DClient>
>
> faultSubcode:
>
> faultString: WSDoAllReceiver: Incoming message does not contain required
> Securi
>
> ty header
>
> faultActor:
>
> faultNode:
>
> faultDetail:
>
>
> {http://xml.apache.org/axis/}stackTrace:WSDoAllReceiver<http://xml.apache.org/axis/%7DstackTrace:WSDoAllReceiver>:
> Incoming message does not contain required Security header
>
> at org.apache.axis.message.SOAPFaultBuilder.createFault
> (SOAPFaultBuilder
>
> .java:222)
>
> at org.apache.axis.message.SOAPFaultBuilder.endElement
> (SOAPFaultBuilder.
>
> java:129)
>
> at org.apache.axis.encoding.DeserializationContext.endElement
> (Deserializ
>
> ationContext.java:1087)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
>
> nt(AbstractSAXParser.java:633)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
>
> EndElement(XMLNSDocumentScannerImpl.java:719)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>
> l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java
> :1685)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>
> l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
>
>
>
>
>
--
Saminda Abeyruwan
Senior Software Engineer
WSO2 Inc. - www.wso2.org