Hi,

      I am using the DII for calling a web service. The webservice method has 4 parameters including 2 headers. 1 is the request header and the other is the response header. The method signature is as follows –

 

public void getCampaignList(com.service.client.wbxml.requestheader.RequestHeader requestHeader, com.service.client.message.GetCampaignListRequest getCampaignListRequest, com.service.client.wbxml.responseheader.holders.ResponseHeaderHolder ResponseHeader, com. service.client.message.holders.GetCampaignListResponseHolder getCampaignListResponse)

 

I am using the addParameterAsHeader() method to add the headers. But when I call invoke on the call object –

 

Object resp = call.invoke(new Object[] {new RequestHeader(), new GetCampaignListRequest()});

 

I am getting the following error –

 

faultString: org.xml.sax.SAXException: Found instance data for {http://v1x1.requestheader.wbxml.ts.net/}RequestHeader in the soap:body instead of the soap:header.

 

Has anyone encountered this problem while using axis. Appreciate any kind of help.

 

Thanks

-Rajesh

 

 

Reply via email to