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

      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:restriction base="soapenc:Array">
      <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns:JIBs[]"/>

      <xsd:complexType name="JIBs">
      <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"/>

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

      <namesp1:getJIBsResponse xmlns:namesp1="http://localhost/JIB">
      <results SOAP-ENC:arrayType="namesp2:JIBArray[3]"
      <item xsi:type="namesp2:JIBArray">
      <url xsi:type="xsd:string">jaborney</url>
      <title xsi:type="xsd:string">CHina</title>
      <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 xsi:type="namesp2:JIBArray">
      <url xsi:type="xsd:string">thirdurl</url>
      <summary xsi:type="xsd:string">end</summary>

      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:
      ion: java.io.IOException: illegal HTTP header: HTTP/1.1 200 OK
      at electric.proxy.handler.Proxy.getCompatibleException(Unknown
      at electric.proxy.handler.Proxy.invoke(Unknown Source)
      at electric.util.proxy.proxy3.InvocationAdaptor.invoke(Unknown
      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.