axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Nair" <rn...@ptpusa.com>
Subject Error while using addParameterAsHeader
Date Wed, 06 Jul 2005 15:59:03 GMT
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

 

 


Mime
View raw message