Thanks Deepal, That works. What kind of value is expected anyway?
On 5/22/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
Kees de Kooter wrote: > How can I set the SOAPAction?? option.setAction("soapaction"); > > This is the stacktrace: > > org.apache.axis2.AxisFault: Server did not recognize the value of HTTP > Header SOAPAction: . > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287) > > at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:432) > at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:374) > at > com.trafficits.soap.WebServiceConsumer.invoke(WebServiceConsumer.java:81) > > > And this is my code: > > EndpointReference endpointReference = new EndpointReference( > endPointAddress); > > Options options = new Options(); > options.setTo(endpointReference); > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > > OMFactory factory = OMAbstractFactory.getOMFactory(); > > OMNamespace namespace = factory.createOMNamespace( > nameSpaceUri, "webService"); > > OMElement method = factory.createOMElement(methodName, namespace); > > ServiceClient serviceClient = new ServiceClient(); > serviceClient.setOptions(options); > > OMElement result = serviceClient.sendReceive(method); > > -- Thanks, Deepal ................................................................ ~Future is Open~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Cheers, Kees de Kooter http://www.boplicity.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]