Hi,

I am consuming a web service at client using the latest jibs-ws-0.9.1.

code as follows,

String m_location = "
http://webservices.ticketvala.com/axis2/services/WSTicketvala";;
SoapClient client = new SoapClient(m_location);
client.setOutBodyBindingFactory(BindingDirectory.getFactory(GetCityDetails.class));
client.setInBodyBindingFactory(BindingDirectory.getFactory(GetCityResponse.class));
                   //     client.addInHeaderHandler(new
UnmarshallingInHandler(QOS.class));

                       GetCityResponse res  = (GetCityResponse)
client.call(city);

My binding file is

<binding>
<mapping name="wsGetCityResponse"
class="com.jibx.gwt.shared.GetCityResponse">
<structure name="wsGetCityRS">
<collection field="listOfCities"
factory="com.jibx.gwt.shared.GetCityResponse.getArrayList">
<structure name="city" type="com.jibx.gwt.shared.CityResponse">
<value name="cityId" field="cityId"></value>
<value name="cityName" field="cityName"></value>
<value name="stateId" field="stateId"></value>
<value name="stateName" field="stateName"></value>
</structure>
</collection>
</structure>
</mapping>


and i get the exception

No handlers could be found for unmarshalling the SOAP body payload

Request is processed succefully, response is correct but it is not
unmarshalled to GetCityResponse object.
SoapUI tool shows that there is no soap:header for the response, then i dont
thing i need to set the InHandler. Am i right?

Also, I went through the examples and tutorial but could not figure out how
to set the InHandler. Could you pls provide some lines of code to set this.


Thanks
Deepak
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to