Thanks Scott,
You have come through for me before and I can only hope this is not a major
code issue for you.
Regards,
Blaine
----- Original Message -----
From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, November 10, 2004 10:48 AM
Subject: Re: [Nusoap-general] Re: Problem after vendor upgrade to use
Document Literal Type
After looking at something Blaine sent me off list, I think the issue is the
way NuSOAP handles elements versus complexTypes combined with the WSDL
having both an element and a complexType named 'authenticate'. Hopefully, I
will get time to look at this soon.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, November 10, 2004 10:24 AM
Subject: Re: [Nusoap-general] Re: Problem after vendor upgrade to use
Document Literal Type
Does NuSOAP 0.6.7 also produce XML with a <parameters> element instead of
<authenticate xmlns="http://www.vocaldata.com/Utilities">? That is
definitely not the behavior I experience (no doc/lit services would work).
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Blaine Lang" <blaine@xxxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, November 10, 2004 9:04 AM
Subject: Re: [Nusoap-general] Re: Problem after vendor upgrade to use
Document Literal Type
Thanks Scott - that appears to have helped and the parametters are now
being
passed in the request but still not with the correct encoding.
I also now am trying with a copy of nusoap.php (just that file) from CVS.
It looks like the WSDL is not being interpreted correctly and the
autheticate node is not being interpretted correctly in the WSDL
Here is the authenticate node in the WSDL
<message name="authenticate">
<part name="parameters" element="tns:authenticate" />
</message>
The XML being sent is as follows:
POST /PortalSDK/jaxrpc/PortalUtilitiesPort HTTP/1.0
User-Agent: NuSOAP/0.6.6
Host: admin.resivoip.primus.ca:800
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""
Content-Length: 615
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:si="http://soapinterop.org/xsd">
<SOAP-ENV:Body>
<parameters>
<phoneNumber>4162349001</phoneNumber>
<phonePassword>1234</phonePassword>
<partitionName></partitionName>
<remoteHost></remoteHost>
</parameters>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Here is what it should be:
POST /PortalSDK/jaxrpc/PortalUtilitiesPort HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 421
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8080
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<authenticate xmlns="http://www.vocaldata.com/Utilities">
<phoneNumber>4162349001</phoneNumber>
<phonePassword>1234</phonePassword>
<partitionName />
<remoteHost />
</authenticate>
</soap:Body>
</soap:Envelope>
It looks like the WSDL is not being interpreted correctly. Here is the
authenticate node in the WSDL
<message name="authenticate">
<part name="parameters" element="tns:authenticate" />
</message>
where the tns:authenticate node looks like...
<xsd:element name="authenticate"
type="tns:authenticate"/>
<xsd:complexType name="authenticate">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1"
name="phoneNumber" type="xsd:string">
<xsd:documentation>The telephone number of the user.
For
DID users, it's the full 10 (or whatever the number plan lenght requires)
digit phone number like 97211140001. For non-DID users, it's any DID
number
of the partition, (most cases the partition's main number is used)
extended
with an x character and the non-DID extension. For example:
9721114000x8000</xsd:documentation>
</xsd:element>
<xsd:element minOccurs="1" maxOccurs="1"
name="phonePassword" type="xsd:string">
<xsd:documentation>The phone password of the
user.</xsd:documentation>
</xsd:element>
<xsd:element minOccurs="1" maxOccurs="1"
name="partitionName" type="xsd:string">
<xsd:documentation>The partition filter. If this
parameter is not an empty string, only users that are member of the
specified partition are allowed to log in.</xsd:documentation>
</xsd:element>
<xsd:element minOccurs="1" maxOccurs="1"
name="remoteHost" type="xsd:string">
<xsd:documentation>Remote location ID. This can be the
IP address or hostname of the host where the login was attempted from or
any
other ID. In case of an invalid login attempt, this ID is logged.
</xsd:documentation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=ick
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=ick
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
|