IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

failed to generate wsd from wsdl - nullPointerException thrown by Developer 7.1

  • 1.  failed to generate wsd from wsdl - nullPointerException thrown by Developer 7.1

    Posted Thu September 18, 2008 01:26 PM

    hi guys,

    please have a look at this wsdl as Developer 7.1 is throwing
    com.wm.app.b2b.server.ServiceException: java.lang.NullPointerException
    at wm.server.ws.wsdl2wsd(ws.java:1125)

    when trying to generate WSD.

    My suspicion is the string and hexBinary arrays as inputs…
    Could those be a problem here?
    The WSDL can be used fine from JAVA/AXIS:

    <?xml version="1.0"?>

    <xsd:complexType name="AttachmentNameArray">
    <xsd:complexContent>
    <xsd:restriction base="soapenc:Array">
    [B]<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>[/b]
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    

    <xsd:complexType name=“AttachmentArray”>
    xsd:complexContent
    <xsd:restriction base=“soapenc:Array”>
    <xsd:attribute ref=“soapenc:arrayType” wsdl:arrayType=“xsd:hexBinary[]”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>

    </xsd:schema>
    
    <operation name="doDeliver">
    <input message="typens:doDeliver"/>
    <output message="typens:doDeliverResponse"/>
    </operation>
    
    <operation name="doDeliver">
    <soap:operation soapAction="urn:FormDeliveryAction"/>
    <input>
    <mime:multipartRelated>        
    <mime:part>
    <soap:body use="encoded"
    namespace="urn:FormDelivery"    
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </mime:part> 
    <mime:part>
    <mime:content part="attachments" type="unknown"/>
    </mime:part>    
    </mime:multipartRelated>
    </input>
    <output>
    <soap:body use="encoded"
    namespace="urn:FormDelivery"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    

    Thanks a lot for any feedback

    //Matt


    #webMethods
    #API-Management
    #soa


  • 2.  RE: failed to generate wsd from wsdl - nullPointerException thrown by Developer 7.1

    Posted Fri September 19, 2008 05:16 PM

    I am receiving a similar error for another wsdl generated from axis code. For mine, the same WSDL loads fine in webMethods 6.1 SP2, but not in 7.1.1, so I opened an SR with webMethods to have them take a look. Mine also has a string array in it.


    #API-Management
    #webMethods
    #soa


  • 3.  RE: failed to generate wsd from wsdl - nullPointerException thrown by Developer 7.1

    Posted Fri September 19, 2008 05:29 PM

    hi tamara,

    I have also opened a SR with wM now, so let’s see what they come up with.
    However, it would be great if some of the gurus from here could have a look and share their opinions.

    //Matt


    #webMethods
    #API-Management
    #soa


  • 4.  RE: failed to generate wsd from wsdl - nullPointerException thrown by Developer 7.1

    Posted Fri September 19, 2008 05:46 PM

    Going to take a wild guess and say the WSDL was generated from an existing piece of code, yes? :wink:

    Drop the array types which will cause all kinds of interoperability issues across platforms. If you need an attachment use base64Binary type or you could try ws-attachments(not sure if that works with IS haven’t tried it).


    #webMethods
    #soa
    #API-Management


  • 5.  RE: failed to generate wsd from wsdl - nullPointerException thrown by Developer 7.1

    Posted Mon September 22, 2008 06:02 PM

    Hehe, very likely, I don’t know how they generated it but can ask :slight_smile:

    Anyway, got SR with wM now, so I will post the results here so others will have a faster route to how to deal with arrays in -to-be-consumed- WSDL files.

    Thanks

    //Matt


    #API-Management
    #soa
    #webMethods


  • 6.  RE: failed to generate wsd from wsdl - nullPointerException thrown by Developer 7.1

    Posted Tue November 04, 2008 04:20 PM

    hi guys, just wanted to update you on this

    wM/SAG provided an engineering fix for IS for this issue, which solved the null pointer exception and I was able to generate the web service connector.
    The arrays were then transformed by Developer into String Lists with respective content types.

    Official fix should be available soon…

    //Matt


    #soa
    #webMethods
    #API-Management