This will give you a head start http://wso2.org/library/240 http://wso2.org/library/695
If you need more help, please download WSAS,<http://dist.wso2.org/products/wsas/java/2.1/>which is Axis2 with more extensions. It has samples which help you in understanding security scenarios. Thank you Saminda On Nov 7, 2007 9:01 PM, Hosamath, Viru <[EMAIL PROTECTED]> wrote: > Saminda, > > > > Yah! I'm referring Axis2, I'm using Axis2 framework for WS. > > > > Thanks, > > Viru > > > > > > Cingular is now the new AT&T > > 12555 Cingular Way > > Alpharetta GA 30004 > > *Work : (678) 893 3176* > > *Cell : (770) 401 9424* > > *Email: [EMAIL PROTECTED] > ------------------------------ > > *From:* Saminda Abeyruwan [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, November 07, 2007 10:29 AM > *To:* [email protected] > *Subject:* Re: Exception during web service call -Please help > > > > 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 > -- Saminda Abeyruwan Senior Software Engineer WSO2 Inc. - www.wso2.org
