You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Ken Noland <kn...@whatif-productions.com> on 2005/05/20 01:49:32 UTC

FW: Problem with WSDL???

Hey,

 

I'm not sure if the last email I sent out worked, so here is another
copy

 

-----Original Message-----
From: Ken Noland 
Sent: Thursday, May 19, 2005 11:22 AM
To: 'axis-c-user@ws.apache.org'
Subject: Problem with WSDL???

 

Hey,

 

I've got an error, and I'm not sure where it is coming from. It could be
something server side, but I need to make sure, so I thought I would
email you guys and see if any of you could help me out a bit. I got a
WSDL document describing to me how to interface with the service and all
I have to do is send a basic XML doc back to the server. It is a simple
request-response, but instead of the WSDL document being available, it
is hidden as a security precaution.

 

Here is the WSDL doc(with a few changes for security reasons)

 

<?xml version="1.0" encoding="UTF-8"?> 
<wsdl:definitions targetNamespace="urn:doc"
xmlns="http://schemas.xmlsoap.org/wsdl/"
<http://schemas.xmlsoap.org/wsdl/>
xmlns:apachesoap="http://xml.apache.org/xml-soap"
<http://xml.apache.org/xml-soap>  xmlns:impl="urn:doc"
xmlns:intf="urn:doc"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
<http://schemas.xmlsoap.org/soap/encoding/>
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
<http://schemas.xmlsoap.org/wsdl/>
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
<http://schemas.xmlsoap.org/wsdl/soap/>
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
<http://www.w3.org/2001/XMLSchema> > 

   <wsdl:message name="loginGetDecalRequest"> 
      <wsdl:part name="username" type="xsd:string"/> 
      <wsdl:part name="password" type="xsd:string"/> 
   </wsdl:message> 
   <wsdl:message name="loginGetDecalResponse"> 
      <wsdl:part name="loginGetDecalReturn" type="xsd:int"/> 
   </wsdl:message> 
   <wsdl:portType name="DOCLogin"> 
      <wsdl:operation name="loginGetDecal" parameterOrder="username
password"> 
         <wsdl:input message="impl:loginGetDecalRequest"
name="loginGetDecalRequest"/> 
         <wsdl:output message="impl:loginGetDecalResponse"
name="loginGetDecalResponse"/> 
      </wsdl:operation> 
   </wsdl:portType> 
   <wsdl:binding name="nteloginSoapBinding" type="impl:DOCLogin"> 
      <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"
<http://schemas.xmlsoap.org/soap/http> /> 
      <wsdl:operation name="loginGetDecal"> 
         <wsdlsoap:operation soapAction=""/> 
         <wsdl:input name="loginGetDecalRequest"> 
            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
<http://schemas.xmlsoap.org/soap/encoding/>  namespace="urn:doc"
use="encoded"/> 
         </wsdl:input> 
         <wsdl:output name="loginGetDecalResponse"> 
            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
<http://schemas.xmlsoap.org/soap/encoding/>  namespace="urn:doc"
use="encoded"/> 
         </wsdl:output> 
      </wsdl:operation> 
   </wsdl:binding> 
   <wsdl:service name="DOCLoginService"> 
      <wsdl:port binding="impl:docloginSoapBinding" name="doclogin"> 
         <wsdlsoap:address location="server address"/> 
      </wsdl:port> 
   </wsdl:service> 
</wsdl:definitions>

 

and here is my response

 

POST /services/doc

User-Agent:Client

Host: server:port

Content-Type: text/xml; charset="utf-8"

Content-Length:537

SOAPAction: "servername:port/service/doc"

<soapenv:Envelope xmlns:impl="urn:doc"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<soapenv:Body>

<impl:username>username</impl:username>

<impl:password>password</impl:password>

</soapenv:Body>

</soapenv:Envelope>

 

and the response from the server is nothing. I don't get anything back
from the server, not even an error, and my receive command times out. Is
it something I'm doing on my side, or is there something going on that I
don't know about?

 

Unfortunately I do not have access to the server and I would consider
myself to be a rookie when it comes to XML. I know that I should be
using the WSDL doc namespace in the request, but since that document is
unavailable to me, I have to make do with what I have. Perhaps it is a
namespace related issue?

 

Or perhaps their services are incorrectly configured, if so, is there a
way for me to remotely tell?

 

Thanks,

-Ken Noland