Hi Nigel,

Any help on the issue pls ?

Regards
Deepak

On Thu, Apr 7, 2011 at 1:38 AM, <jibx-users-requ...@lists.sourceforge.net>wrote:

> Send jibx-users mailing list submissions to
>        jibx-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/jibx-users
> or, via email, send a message with subject or body 'help' to
>        jibx-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>        jibx-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of jibx-users digest..."
>
>
> Today's Topics:
>
>   1. Re: No handlers could be found for unmarshalling the SOAP
>      body payload (Nigel Charman)
>   2. problem with extends... (Ronald Johnson)
>   3. Re: No handlers could be found for unmarshalling the      SOAP
>      body payload (Deepak Singh)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 04 Apr 2011 18:33:49 +1200
> From: Nigel Charman <nigel.charman...@gmail.com>
> Subject: Re: [jibx-users] No handlers could be found for unmarshalling
>        the SOAP body payload
> To: JiBX users <jibx-users@lists.sourceforge.net>
> Message-ID: <4d99664d.9090...@gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Deepak
>
> Looking at the schema, it uses different namespaces for the wrapper
> element (defined in the WSDL) and the imported elements (defined in the
> XSD).  Your binding definition only includes the one namespace.
>
> The recommended approach is to use codegen to create the bindings and
> code.  Here is how to extract the schema from the WSDL and generate the
> bindings and code using codegen.  You can then use these bindings and
> code for your JiBX/WS web service.
>
>    * Download the WSDL from
>      http://webservices.ticketvala.com/axis2/services/WSTicketvala?wsdl.
> Name
>      this file WSTicketvalaWSDL.xsd (the name doesn't matter).
>    * Extract just the <xsd:schema> element from this WSDL (by deleting
>      everything before <xsd:schema>, and everything after </xsd:schema>).
>    * Download the referenced imported XSD from
>
> http://webservices.ticketvala.com/axis2/services/WSTicketvala?xsd=webservices.xsd
> .
>      Name this file WSTicketvala.xsd.
>    * Change the import statement in WSTicketvalaWSDL.xsd to reference
>      the downloaded XSD file:
>
> <xsd:import namespace="http://travis.com/webservices";
> schemaLocation="WSTicketvala.xsd"/>
>
>    * Follow the instructions at
>      http://jibx.sourceforge.net/fromschema/codegen.html to generate
>      the binding and code from the schema, for example:
>
>        java -cp ..\..\lib\jibx-tools.jar org.jibx.schema.codegen.CodeGen -t
> target WSTicketvalaWSDL.xsd
>
>    * This will generate Java classes and binding files in the target
>      folder.  You can copy these to your project folder (or setup an
>      Ant or Maven build to generate and build the code for you).
>    * If required, see the codegen reference documentation for how to
>      customise the generated code (eg. to only include wsGetCityRequest
>      and wsGetCityResponse)
>
> cheers
> Nigel
>
>
> On 04/04/11 08:08, Deepak Singh wrote:
> > Hi Nigel,
> >
> > i added the namespace as follows
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <binding direction="input" trac-source="true" add-constructors="true"
> > xmlns:ns1="http://travis.com/webservices"; name="binding"
> > trim-whitespace="true">
> > <namespace uri="http://travis.com/webservices"; default="elements" />
> > <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" usage="optional"></value>
> > <value name="cityName" field="cityName" usage="optional"></value>
> > <value name="stateId" field="stateId" usage="optional"></value>
> > <value name="stateName" field="stateName" usage="optional"></value>
> > <value name="countryId" field="countryId" usage="optional"></value>
> > <value name="countryName" field="countryName" usage="optional"></value>
> > </structure>
> > </collection>
> > </structure>
> > </mapping>
> > </binding>
> >
> >
> >
> > But still the same error i am getting. I checked that in isolation,
> > unmarshalling is happening properly.
> >
> > I could not sort out the problem. Kindly help on this. If you want i
> > would post the entire code again.
> >
> > Thanks
> > Deepak
> >
> >
> >
> >
> ----------------------------------------------------------------------
> >
> >     Message: 1
> >     Date: Thu, 17 Mar 2011 16:17:52 +1300
> >     From: Nigel Charman <nigel.charman.nz
> >     <http://nigel.charman.nz>@gmail.com <http://gmail.com>>
> >     Subject: Re: [jibx-users] No handlers could be found for
> unmarshalling
> >            the SOAP        body payload
> >     To: JiBX users <jibx-users@lists.sourceforge.net
> >     <mailto:jibx-users@lists.sourceforge.net>>
> >     Message-ID: <4d817d60.1080...@gmail.com
> >     <mailto:4d817d60.1080...@gmail.com>>
> >     Content-Type: text/plain; charset="utf-8"
> >
> >     Hi Deepak
> >
> >     You'll need to add namespace definitions to the binding file for the
> >     SOAP response, as well as the SOAP request.
> >
> >     Calling SoapClient.setInBodyBindingFactory(..) sets up a handler
> >     for the
> >     SOAP body using the supplied binding factory.  The message is
> >     indicating
> >     that the SOAP body can not be parsed using this binding - presumably
> >     since there is no namespace defined in your binding.  If you still
> >     have
> >     problems, please check that JiBX can unmarshall the payload of the
> >     SOAP
> >     body in isolation.
> >
> >     This exercise would have been simpler using Dennis' initial
> >     recommendation to extract the schemas from the WSDL yourself, then to
> >     use codegen to create the data model code and bindings.  Having a
> tool
> >     to automate the generation directly from WSDL is on our backlog..
> >
> >     cheers
> >     Nigel
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Wed, 6 Apr 2011 13:59:03 +0200
> From: Ronald Johnson <rj.1...@googlemail.com>
> Subject: [jibx-users] problem with extends...
> To: jibx-users@lists.sourceforge.net
> Message-ID: <BANLkTi=ks8efxncxdzthfpgmw-v2zh3...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I have one kind of xml documents:
>
> <a>
>  <foo>bar</foo>
>  <!-- plus loads of other tags -->
> </a>
>
> I now need to extend that kind of document with addtional information
> for some cases, my idea was to just create a different namespace for
> those cases, e.g. the xml document would look like this:
>
> <a xmlns="http://www.example.com/dummyns";>
>  <foo>bar</foo>
>  <!-- plus loads of other tags -->
>
>  <!-- addtional tags that doesnt exist in original A -->
>  <addtionalstuff>blah</addtionalstuff>
> </a>
>
> when processing xml documents, I have a file that imports different
> bindings, and jibx should find out which one to use:
>
> <binding name="a_binddef_multi" direction="input">
>    <include path="a_binddef.xml" />
>    <include path="a_withadditionalstuff_binddef.xml" />
> </binding>
>
> where a_binddef.xml is a normal binding, and the
> a_withadditionalstuff_binddef.xml looks like this:
>
> <binding direction="input">
>
>  <namespace uri="http://www.example.com/dummyns"; default="elements"/>
>
>    <include path="a_binddef.xml" />
>    <mapping ordered="false" name="a"
>        class="com.example.model.AWithAddtionalStuff"
>        extends="com.example.model.A"
>        ns="http://www.example.com/dummyns";>
>
>        <structure map-as="com.example.model.A" />
>
>        <!-- here would be my mapping for addtionalstuff -->
>    </mapping>
> </binding>
>
> however, i get this error message when I try to process an xml document
>
> org.jibx.runtime.JiBXException: No unmarshaller for element
> "{http://www.example.com/dummyns}a"; (line 1, col 1)
>
> I thought the problem is that they both had the same base tag name
> ("a"), but I dont seem to get it right.... any pointers how I can get
> this kind of "inheritance" to work?
>
> (I tried to simplify the code above, in reality the xml and the
> binddefs are quite large with many tags)
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 7 Apr 2011 01:38:33 +0530
> From: Deepak Singh <deepaksingh...@gmail.com>
> Subject: Re: [jibx-users] No handlers could be found for unmarshalling
>        the     SOAP body payload
> To: jibx-users@lists.sourceforge.net
> Message-ID: <banlktikbkgrj5kxihh6uo9txx-_0ygf...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Thu, Apr 7, 2011 at 1:23 AM, Deepak Singh <deepaksingh...@gmail.com
> >wrote:
>
> > Hi Nigel,
> >
> > I followed your suggestions step by step and came up with following
> schema,
> >
> > WSTicketvalaWSDL.xsd
> >
> >         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:tns="http://travis.com/webservices/WSTicketvala/WSTicketvala";
> > xmlns:ns1="http://travis.com/webservices";
> > attributeFormDefault="unqualified" elementFormDefault="qualified"
> > targetNamespace="http://travis.com/webservices/WSTicketvala/WSTicketvala
> ">
> >
> >             <xsd:import namespace="http://travis.com/webservices";
> > schemaLocation="WSTicketvala.xsd"/>
> >
>                      ........                     ...........
>
>
> >  WSTicketvala.xsd
> >
> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:tns="
> > http://travis.com/webservices"; attributeFormDefault="unqualified"
> > elementFormDefault="qualified" targetNamespace="
> > http://travis.com/webservices";>
> >
> > <xsd:complexType name="wsCancelBookingRQ">
> >
> > <xsd:sequence>
> >
> > ..............             ....................
> >
>
>
> I use CodeGen tool@jibx1.2.3 and generate all the classes and binding
> successfully but when i compile it, i get the following exception,
>
> Error: No mapping with type name {
> http://travis.com/webservices}:wsCheckAvailabilityRQ; on structure element
> at (line 4, col 174, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsCheckAvailabilityRS; on structure element
> at (line 7, col 174, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsCheckAvailabilityRQ; on structure element
> at (line 10, col 174, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsCheckAvailabilityRS; on structure element
> at (line 13, col 174, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetSourceDestinationPairRQ; on structure
> element at (line 16, col 202, in
> webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsSourceDestinationPairRS; on structure
> element at (line 19, col 190, in
> webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsMakeBookingRQ; on structure element at
> (line 22, col 150, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsMakeBookingRS; on structure element at
> (line 25, col 150, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsMakeBookingRQ; on structure element at
> (line 28, col 150, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsMakeBookingRS; on structure element at
> (line 31, col 150, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsMakeBookingRQ; on structure element at
> (line 34, col 150, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsMakeBookingRS; on structure element at
> (line 37, col 150, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetSeatMapRQ; on structure element at
> (line
> 40, col 146, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetSeatMapRS; on structure element at
> (line
> 43, col 146, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsHoldSeatRQ; on structure element at (line
> 46, col 138, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsHoldSeatRS; on structure element at (line
> 49, col 138, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetBookingDetailsRQ; on structure element
> at (line 52, col 174, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetBookingDetailsRS; on structure element
> at (line 55, col 174, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsConfirmBookingRQ; on structure element at
> (line 58, col 162, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsConfirmBookingRS; on structure element at
> (line 61, col 162, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsIsBookingCancelableRQ; on structure
> element
> at (line 64, col 182, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsIsBookingCancelableRS; on structure
> element
> at (line 67, col 182, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsIsBookingCancelable1XRQ; on structure
> element at (line 70, col 190, in
> webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsIsBookingCancelable1XRS; on structure
> element at (line 73, col 190, in
> webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsCancelBookingRQ; on structure element at
> (line 76, col 158, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsCancelBookingRS; on structure element at
> (line 79, col 158, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsCancelBooking1XRQ; on structure element
> at
> (line 82, col 166, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsCancelBooking1XRS; on structure element
> at
> (line 85, col 166, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetCityRQ;
> on structure element at (line 88, col 134, in
> webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetCityRS;
> on structure element at (line 91, col 134, in
> webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsRetrieveBookingRQ; on structure element
> at
> (line 94, col 166, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsRetrieveBookingRS; on structure element
> at
> (line 97, col 166, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetBalanceRQ; on structure element at
> (line
> 100, col 146, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error: No mapping with type name {
> http://travis.com/webservices}:wsGetBalanceRS; on structure element at
> (line
> 103, col 146, in webservices_WSTicketvala_WSTicketvalaBinding.xml)
> Error running binding compiler
> org.jibx.runtime.JiBXException: Binding
> webservices_WSTicketvala_WSTicketvalaBinding.xml is unusable because of
> validation errors
> at org.jibx.binding.Utility.loadBinding(Utility.java:377)
> at org.jibx.binding.Utility.loadFileBinding(Utility.java:439)
>
>
> Kindly suggest.
>
> Thanks
> Deepak
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
>
> ------------------------------
>
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
> End of jibx-users Digest, Vol 59, Issue 2
> *****************************************
>
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to