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

1998GLUE/Axis client with Soap::Lite server

Expand Messages
  • Martin McFly
    Oct 30, 2002
    • 0 Attachment
      Hi,

      I've successfully built a Soap::Lite web service along with a
      corresponding WSDL file. To test the WSDL file, a used Soap::Lite to
      build a Perl client, and everything worked great. Now, I'm trying to
      write a Java client (have tried both GLUE and Axis) to access my
      Soap::Lite web service. My WSDL file has the following complex types:

      <xsd:complexType name="JIBArray">
      <xsd:complexContent>
      <xsd:restriction base="soapenc:Array">
      <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns:JIBs[]"/>
      </xsd:restriction>
      </xsd:complexContent>
      </xsd:complexType>

      <xsd:complexType name="JIBs">
      <xsd:all>
      <xsd:element name="title" type="xsd:string"/>
      <xsd:element name="url" type="xsd:string"/>
      <xsd:element name="summary" type="xsd:string"/>
      <xsd:element name="date" type="xsd:string"/>
      </xsd:all>
      </xsd:complexType>

      and my SOAP response (that my Perl client deals with perfectly) looks
      like the following (abbreviated to save space):

      <SOAP-ENV:Body>
      <namesp1:getJIBsResponse xmlns:namesp1="http://localhost/JIB">
      <results SOAP-ENC:arrayType="namesp2:JIBArray[3]"
      xsi:type="SOAP-ENC:Array">
      <item xsi:type="namesp2:JIBArray">
      <url xsi:type="xsd:string">jaborney</url>
      <title xsi:type="xsd:string">CHina</title>
      </item>
      <item xsi:type="namesp2:JIBArray">
      <url xsi:type="xsd:string">secondurl</url>
      <title xsi:type="xsd:string">secondtitle</title>
      <date xsi:type="xsd:string">2002-01-01start</date>
      </item>
      <item xsi:type="namesp2:JIBArray">
      <url xsi:type="xsd:string">thirdurl</url>
      <summary xsi:type="xsd:string">end</summary>
      </item>
      </results>
      </namesp1:getJIBsResponse>
      </SOAP-ENV:Body>


      When I use the WSDL2Java utilities that GLUE and Axis provide, and
      then write a quick and dirty client, I get exceptions thrown at me in
      both cases. The Axis one I think is an Axis problem, but the Glue
      error is the following:

      Exception in thread "main" electric.util.WrappedException:
      java.rmi.RemoteExcept
      ion: java.io.IOException: illegal HTTP header: HTTP/1.1 200 OK
      at electric.proxy.handler.Proxy.getCompatibleException(Unknown
      Source)
      at electric.proxy.handler.Proxy.invoke(Unknown Source)
      at electric.util.proxy.proxy3.InvocationAdaptor.invoke(Unknown
      Source)
      at $Proxy0.getJIBs(Unknown Source)
      at JIBClient.main(JIBClient.java:17)

      It looks like the web service is being accessed, I just can't get past
      this error. Any help would be greatly appreciated.

      Brook H.