[xml] Strange behaviour in xmlNanoHTTP



  I am having a very strange problem retrieving a wsdl document across the
net using xmlNanoHTTP

  The URL in question is:
  http://nagoya.apache.org:5049/axis/services/echoA?wsdl

  retrieved through browser it looks like this:
  ....

  <wsdl:service name="InteropTestSoapBindingImplService">
    <wsdl:port binding="impl:echoASoapBinding" name="echoA">
      <wsdlsoap:address
location="http://nagoya.apache.org:5049/axis/services/echoA"/>
    </wsdl:port>
  </wsdl:service>

  ....

  retrieved through:
  ctxt = xmlNanoHTTPMethod(
"http://nagoya.apache.org:5049/axis/services/echoA?wsdl";,
                             "GET",
                             content,
                             &contentType,
                             headers,
                             0 );

where content, contentType and headers are all null char*
.
  or:
  doc = xmlParseFile(
"http://nagoya.apache.org:5049/axis/services/echoA?wsdl"; );

  I get this:
  ....

  <wsdl:service name="InteropTestSoapBindingImplService">
    <wsdl:port binding="impl:echoASoapBinding" name="echoA">
      <wsdlsoap:address
location="http://nagoya.apache.org/axis/services/echoA"/>
    </wsdl:port>
  </wsdl:service>

  ....

  Note the missing ':5049' port after the hostname

  ????

  An alternative url, also with a port number:
  http://soap.systinet.net:6070/InteropService/

  retrieved with xmlNanoHTTP methods as above seems to work fine.

    <service name="InteropTest">
        <port name="InteropTest" binding="tns:InteropTestSoapBinding">
            <soap:address
location="http://rebus.systinet.com:6070/InteropService/"/>
        </port>
    </service>


 The only difference I can see is the ?wsdl on the end of the
http://nagoya.apache.org:5049/axis/services/echoA?wsdl
but I'm really in the dark here.

Stephen








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]