Loading ...
Sorry, an error occurred while loading the content.

"Can't call method "namespace" on undefined value" with WSDL from GLUE server

Expand Messages
  • merten_schumann
    Hello, I m trying to test my (webMethods/TME GLUE based) webservice and found that WSDL for one method void soapApplicationUpdateBlob(RoSOAPId idApplication,
    Message 1 of 2 , Nov 26, 2003
    • 0 Attachment
      Hello,

      I'm trying to test my (webMethods/TME GLUE based) webservice and found
      that WSDL for one method

      void soapApplicationUpdateBlob(RoSOAPId idApplication, long itemId,
      String attribute, MIMEData att)

      forced this error

      Can't call method "namespace" on an undefined value at
      /usr/lib/perl5/.../SOAP/Lite.pm line 2409

      to appear at SOAP::Lite->service()

      The interesting thing is, when I only have method

      MIMEData soapApplicationGetBlob(RoSOAPId idApplication, long
      itemId, String attribute)

      in the WSDL, no errors appear, WSDL could be parsed successfully by
      SOAP::Lite and method getBlob is known (but I haven't tried to use it).

      Is there anything wrong in SOAP::Lite or is the WSDL generated by GLUE
      defect?

      Here's the WSDL
      <?xml version="1.0" encoding="UTF-8"?>
      <!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Merten
      Schumann (ASG) -->
      <!--generated by GLUE Standard 4.1.2 on Wed Nov 26 13:10:01 CET 2003-->
      <wsdl:definitions name="RoSOAPServiceImpl"
      targetNamespace="http://www.themindelectric.com/wsdl/RoSOAPServiceImpl/"
      xmlns:tns="http://www.themindelectric.com/wsdl/RoSOAPServiceImpl/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
      xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
      xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:tme="http://www.themindelectric.com/"
      xmlns:n11="http://www.themindelectric.com/package/de.rochade.srap/">
      <wsdl:types>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://www.themindelectric.com/package/de.rochade.srap/">
      <xsd:complexType name="RoSOAPId">
      <xsd:all>
      <xsd:element name="id" nillable="true" type="xsd:string"/>
      <xsd:element name="data" nillable="true" type="xsd:ArrayOfstring"/>
      </xsd:all>
      </xsd:complexType>
      </xsd:schema>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://www.w3.org/2001/XMLSchema">
      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <xsd:complexType name="ArrayOfstring">
      <xsd:complexContent>
      <xsd:restriction base="soapenc:Array">
      <xsd:attribute ref="soapenc:arrayType"
      wsdl:arrayType="xsd:string[]"/>
      </xsd:restriction>
      </xsd:complexContent>
      </xsd:complexType>
      </xsd:schema>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://mime/"/>
      </wsdl:types>
      <wsdl:message name="soapApplicationUpdateBlob0In">
      <wsdl:part name="idApplication" type="n11:RoSOAPId"/>
      <wsdl:part name="itemId" type="xsd:long"/>
      <wsdl:part name="attribute" type="xsd:string"/>
      <wsdl:part name="att" type="xsd:base64Binary"/>
      </wsdl:message>
      <wsdl:message name="soapApplicationUpdateBlob0Out"/>
      <wsdl:message name="soapApplicationGetBlob1In">
      <wsdl:part name="idApplication" type="n11:RoSOAPId"/>
      <wsdl:part name="itemId" type="xsd:long"/>
      <wsdl:part name="attribute" type="xsd:string"/>
      </wsdl:message>
      <wsdl:message name="soapApplicationGetBlob1Out">
      <wsdl:part name="Result" type="xsd:base64Binary"/>
      </wsdl:message>
      <wsdl:portType name="RoSOAPServiceImpl">
      <wsdl:operation name="soapApplicationUpdateBlob"
      parameterOrder="idApplication itemId attribute att">
      <wsdl:input name="soapApplicationUpdateBlob0In"
      message="tns:soapApplicationUpdateBlob0In"/>
      <wsdl:output name="soapApplicationUpdateBlob0Out"
      message="tns:soapApplicationUpdateBlob0Out"/>
      </wsdl:operation>
      <wsdl:operation name="soapApplicationGetBlob"
      parameterOrder="idApplication itemId attribute">
      <wsdl:input name="soapApplicationGetBlob1In"
      message="tns:soapApplicationGetBlob1In"/>
      <wsdl:output name="soapApplicationGetBlob1Out"
      message="tns:soapApplicationGetBlob1Out"/>
      </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="RoSOAPServiceImpl" type="tns:RoSOAPServiceImpl">
      <soap:binding style="rpc"
      transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="soapApplicationUpdateBlob">
      <soap:operation soapAction="soapApplicationUpdateBlob" style="rpc"/>
      <wsdl:input name="soapApplicationUpdateBlob0In">
      <mime:multipartRelated>
      <mime:part>
      <soap:body use="encoded" namespace="x"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </mime:part>
      <mime:part>
      <mime:content part="att" type="application/binary"/>
      </mime:part>
      </mime:multipartRelated>
      </wsdl:input>
      <wsdl:output name="soapApplicationUpdateBlob0Out">
      <soap:body use="encoded" namespace="x"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="soapApplicationGetBlob">
      <soap:operation soapAction="soapApplicationGetBlob" style="rpc"/>
      <wsdl:input name="soapApplicationGetBlob1In">
      <soap:body use="encoded" namespace="x"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </wsdl:input>
      <wsdl:output name="soapApplicationGetBlob1Out">
      <mime:multipartRelated>
      <mime:part>
      <soap:body use="encoded" namespace="x"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </mime:part>
      <mime:part>
      <mime:content part="Result" type="application/binary"/>
      </mime:part>
      </mime:multipartRelated>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="RoSOAPServiceImpl">
      <wsdl:documentation>instance of class
      de.rochade.srap.RoSOAPServiceImpl</wsdl:documentation>
      <wsdl:port name="RoSOAPServiceImpl" binding="tns:RoSOAPServiceImpl">
      <soap:address location="http://10.33.10.82:8015/rochade/Rochade_SRAP"/>
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

      Thank you!
      Merten
    • Byrne Reese
      The problem appears to be with SOAP::Lite and its inability to parse WSDL that have any mime bindings. As always, I ask anyone who finds a bug to register it
      Message 2 of 2 , Nov 26, 2003
      • 0 Attachment
        The problem appears to be with SOAP::Lite and its inability to parse WSDL
        that have any mime bindings.

        As always, I ask anyone who finds a bug to register it at sourceforge so
        that it can be tracked more effectively:

        http://sourceforge.net/projects/soaplite

        > Hello,
        >
        > I'm trying to test my (webMethods/TME GLUE based) webservice and found
        > that WSDL for one method
        >
        > void soapApplicationUpdateBlob(RoSOAPId idApplication, long itemId,
        > String attribute, MIMEData att)
        >
        > forced this error
        >
        > Can't call method "namespace" on an undefined value at
        > /usr/lib/perl5/.../SOAP/Lite.pm line 2409
        >
        > to appear at SOAP::Lite-?xml version="1.0"
        > encoding="UTF-8"?!-- edited with XML Spy v4.3 U
        > (http://www.xmlspy.com) by Merten
        > Schumann (ASG) --!--generated by GLUE Standard 4.1.2 on Wed Nov 26
        > 13:10:01 CET 2003--wsdl:definitions name="RoSOAPServiceImpl"
        > targetNamespace="http://www.themindelectric.com/wsdl/RoSOAPServiceImpl/"
        > xmlns:tns="http://www.themindelectric.com/wsdl/RoSOAPServiceImpl/"
        > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        > xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
        > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
        > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
        > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
        > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
        > xmlns:tme="http://www.themindelectric.com/"
        > xmlns:n11="http://www.themindelectric.com/package/de.rochade.srap/"wsdl:typesxsd:schema
        > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        > targetNamespace="http://www.themindelectric.com/package/de.rochade.srap/"xsd:complexType
        > name="RoSOAPId"xsd:allxsd:element name="id"
        > nillable="true" type="xsd:string"/xsd:element
        > name="data" nillable="true"
        > type="xsd:ArrayOfstring"//xsd:all/xsd:complexType/xsd:schemaxsd:schema
        > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        > targetNamespace="http://www.w3.org/2001/XMLSchema"xsd:import
        > namespace="http://schemas.xmlsoap.org/soap/encoding/"/xsd:complexType
        > name="ArrayOfstring"xsd:complexContentxsd:restriction
        > base="soapenc:Array"xsd:attribute
        > ref="soapenc:arrayType"
        > wsdl:arrayType="xsd:string[]"//xsd:restriction/xsd:complexContent/xsd:complexType/xsd:schemaxsd:schema
        > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        > targetNamespace="http://mime/"//wsdl:typeswsdl:message
        > name="soapApplicationUpdateBlob0In"wsdl:part
        > name="idApplication" type="n11:RoSOAPId"/wsdl:part
        > name="itemId" type="xsd:long"/wsdl:part
        > name="attribute" type="xsd:string"/wsdl:part
        > name="att"
        > type="xsd:base64Binary"//wsdl:messagewsdl:message
        > name="soapApplicationUpdateBlob0Out"/wsdl:message
        > name="soapApplicationGetBlob1In"wsdl:part
        > name="idApplication" type="n11:RoSOAPId"/wsdl:part
        > name="itemId" type="xsd:long"/wsdl:part
        > name="attribute"
        > type="xsd:string"//wsdl:messagewsdl:message
        > name="soapApplicationGetBlob1Out"wsdl:part
        > name="Result"
        > type="xsd:base64Binary"//wsdl:messagewsdl:portType
        > name="RoSOAPServiceImpl"wsdl:operation
        > name="soapApplicationUpdateBlob"
        > parameterOrder="idApplication itemId attribute att"wsdl:input
        > name="soapApplicationUpdateBlob0In"
        > message="tns:soapApplicationUpdateBlob0In"/wsdl:output
        > name="soapApplicationUpdateBlob0Out"
        > message="tns:soapApplicationUpdateBlob0Out"//wsdl:operationwsdl:operation
        > name="soapApplicationGetBlob"
        > parameterOrder="idApplication itemId attribute"wsdl:input
        > name="soapApplicationGetBlob1In"
        > message="tns:soapApplicationGetBlob1In"/wsdl:output
        > name="soapApplicationGetBlob1Out"
        > message="tns:soapApplicationGetBlob1Out"//wsdl:operation/wsdl:portTypewsdl:binding
        > name="RoSOAPServiceImpl"
        > type="tns:RoSOAPServiceImpl"soap:binding style="rpc"
        > transport="http://schemas.xmlsoap.org/soap/http"/wsdl:operation
        > name="soapApplicationUpdateBlob"soap:operation
        > soapAction="soapApplicationUpdateBlob"
        > style="rpc"/wsdl:input
        > name="soapApplicationUpdateBlob0In"mime:multipartRelatedmime:partsoap:body
        > use="encoded" namespace="x"
        > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"//mime:partmime:partmime:content
        > part="att"
        > type="application/binary"//mime:part/mime:multipartRelated/wsdl:inputwsdl:output
        > name="soapApplicationUpdateBlob0Out"soap:body
        > use="encoded" namespace="x"
        > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"//wsdl:output/wsdl:operationwsdl:operation
        > name="soapApplicationGetBlob"soap:operation
        > soapAction="soapApplicationGetBlob"
        > style="rpc"/wsdl:input
        > name="soapApplicationGetBlob1In"soap:body
        > use="encoded" namespace="x"
        > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"//wsdl:inputwsdl:output
        > name="soapApplicationGetBlob1Out"mime:multipartRelatedmime:partsoap:body
        > use="encoded" namespace="x"
        > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"//mime:partmime:partmime:content
        > part="Result"
        > type="application/binary"//mime:part/mime:multipartRelated/wsdl:output/wsdl:operation/wsdl:bindingwsdl:service
        > name="RoSOAPServiceImpl"wsdl:documentation/wsdl:documentationwsdl:port
        > name="RoSOAPServiceImpl"
        > binding="tns:RoSOAPServiceImpl"soap:address
        > location="http://10.33.10.82:8015/rochade/Rochade_SRAP"//wsdl:port/wsdl:service/wsdl:definitions
        >
        >
        >
        >
        > To unsubscribe from this group, send an email to:
        > soaplite-unsubscribe@yahoogroups.com
        >
        >
        >
        >
        >
        > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
        >
        >
        >
        >
        >


        ^byrne :/
      Your message has been successfully submitted and would be delivered to recipients shortly.