Re: [Axis2] Creating Axis2 SOAP Header

2007-05-14 Thread Daniel Herbison
viceId = fac.createOMElement("serviceId", omNs); >>>>> OMText serviceIdText = fac.createOMText(serviceId, agentID); >>>>> serviceId.addChild(serviceIdText); >>>>> >>>>> OMElement serviceKey = fac.createOMElement("servic

Re: [Axis2] Creating Axis2 SOAP Header

2007-05-11 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Do this. instead of serviceClient.addHeader(header) put serviceClient.addHeader(basicCredentials). The addHeader method can not accept an instance of Header class (arghh !! I better check this inside the code) If this doesn't solve your problem, I

Re: [Axis2] Creating Axis2 SOAP Header

2007-05-11 Thread Daniel Herbison
ct[] opSetParams = new Object[] { agentID, agentToken, requestor }; >> Class[] returnTypes = new Class[] { Object.class }; >> >> Object[] response = serviceClient.invokeBlocking(opSetClaim, opSetParams, >> returnTypes); >> > > -BEGIN PGP SIGNATURE- > Ver

Re: Creating Axis2 SOAP Header

2007-05-10 Thread Samisa Abeysinghe
Eran Chinthaka wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Samisa Abeysinghe wrote: Amila Suriarachchi wrote: I am not sure about your problem. but add this code to specifically set the soap12 for service client. clientOptions = new Options(); clientOptions.setSoapVersionURI(

Re: [Axis2] Creating Axis2 SOAP Header

2007-05-10 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, the first advice is *never* use impl classes inside Axiom. Always use the factories. The reason is we have multiple implementations of them. To correct your problem, the easiest way is to create an OMElement rather than a SOAPHeaderBlock and call

Re: Creating Axis2 SOAP Header

2007-05-10 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Samisa Abeysinghe wrote: > Amila Suriarachchi wrote: >> I am not sure about your problem. >> but add this code to specifically set the soap12 for service client. >> >> clientOptions = new Options(); >> clientOptions.setSoapVersionURI(SOAP12Constants.SO

Re: Creating Axis2 SOAP Header

2007-05-10 Thread Samisa Abeysinghe
Amila Suriarachchi wrote: I am not sure about your problem. but add this code to specifically set the soap12 for service client. clientOptions = new Options(); clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI ); Why not simplify the API to something like: clientOptio

Re: Creating Axis2 SOAP Header

2007-05-10 Thread Michele Mazzucco
- > >> >> > RPCServiceClient serviceClient = new RPCServiceClient(); > >> >> > Options options = serviceClient.getOptions(); > >> >> > EndpointReference targetEPR = new > >> >>

Re: Creating Axis2 SOAP Header

2007-05-10 Thread Daniel Herbison
gt; > >> >> > >> >> >string1 >> >> >string2 >> >> > >> >> > >> >> > */ >> >> > OMFactory fac = OMAbstract

Re: Creating Axis2 SOAP Header

2007-05-10 Thread Michele Mazzucco
;> > SOAP12HeaderBlockImpl("Security",omNs,soapFactory); > >> > soapHeaderBlock.setMustUnderstand(true); > >> > > >> > OMElement basicCredentials = fac.createOMElement > >> > ("BasicCredentials", omNs); > >> > &

Re: Creating Axis2 SOAP Header

2007-05-10 Thread Daniel Herbison
gt;> > OMElement serviceId = fac.createOMElement("serviceId", omNs); >> > OMText serviceIdText = fac.createOMText(serviceId, agentID); >> > serviceId.addChild(serviceIdText); >> > >> > OMElement serviceKey = fac.createOMElement("serviceKey", o

Re: Creating Axis2 SOAP Header

2007-05-09 Thread Amila Suriarachchi
Key); > > soapHeaderBlock.addChild(basicCredentials); > > serviceClient.addHeader(soapHeaderBlock); > // end header build > > QName opSetClaim = new QName("beta", "GetClaim" ); > > Object[] opSetParams = new Object[] { agentID, agentToken, > req

Re: Creating Axis2 SOAP Header

2007-05-09 Thread Michele Mazzucco
tToken, requestor }; Class[] returnTypes = new Class[] { Object.class }; Object[] response = serviceClient.invokeBlocking(opSetClaim, opSetParams, returnTypes); -- View this message in context: http://www.nabble.com/Creating-Axis2- SOAP-Header-tf3718396.html#a10403132 Sent from the Axis - User

Creating Axis2 SOAP Header

2007-05-09 Thread Daniel Herbison
agentID, agentToken, requestor }; Class[] returnTypes = new Class[] { Object.class }; Object[] response = serviceClient.invokeBlocking(opSetClaim, opSetParams, returnTypes); -- View this message in context: http://www.nabble.com/Creatin