Mitchell, Philip A. | 23 Apr 16:00 2004
Picon

More on passing array of complex type

(My apologies if this is a duplicate post -- asfaict my original post
didn't go through, and I have not seen any replies.)

I'm also having a problem with arrays of objects. Saw the previous
thread, but it didn't solve my case. I've set up an axis soap server,
and can pass the array from java just fine. But from php nusoap, my data
doesn't seem to make it into the soap request. Here's what I'm doing:

$card = new Card("mastercard", "xxxxxxxxxxxx55554444", 2, 2005); $card2
= new Card("mastercard", "xxxxxxxxxxxxxx54444", 2, 2005); $cards =
array($card, $card2);

$soapclient = new soapclient(CC_AUTH_SOAP_SERVER_WSDL, "wsdl");
$soap_proxy = $soapclient->getProxy(); $result =
$soap_proxy->cardArrayTest($cards);

But when I examine the request body, the data isn't there:

<SOAP-ENV:Body><nu:cardArrayTest>
<cards xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns1:Card[2]">
<item xsi:type="tns1:Card"></item>
<item xsi:type="tns1:Card"></item>
</cards></nu:cardArrayTest></SOAP-ENV:Body>

Any thoughts would be much appreciated!

Here's my wsdl (auto-generated by axis):

<wsdl:definitions
targetNamespace="http://my.domain.edu:8080/axis/services/CastellPaymentS
(Continue reading)

Tan Hong Tat | 26 Apr 09:22 2004
Picon

NuSOAP Client help

Hi,
 
I've created a client calling the function (checkOrder) connecting to the server using the NuSOAP Toolkit (v1.73).
 
I wrote the following PHP code, but the productID is missing in the request. Could someone help me with this? Thank you.. 
 
 
--------------------------- Request ---------------------------
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoaporg/soap/encoding/"  xmlns:SOAP-ENV="http://schemas.xmlsoaporg/soap/envelope/"  xmlns:xsd="http://www.w3.org/2001/XMLSchema"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:SOAP-ENC="http://schemas.xmlsoaporg/soap/encoding/"  xmlns:si="http://soapinterop.org/xsd"  xmlns:impl="http://elgr.com/scm/warehouse"  xmlns:tns3="http://elgr.com/scm/warehouse/processing"><SOAP-ENV:Body>
<impl:checkOrder>
<checkOrderReq xsi:type="tns3:CheckOrderReqType">
<orderDetailReq xsi:type="tns3:OrderDetailReqType">
<productId xsi:type="tns3:ProductIdType"></productId>
<quantity xsi:type="xsd:int">125</quantity>
</orderDetailReq>
<orderDetailReq xsi:type="tns3:OrderDetailReqType">
<productId xsi:type="tns3:ProductIdType"></productId>
<quantity xsi:type="xsd:int">5</quantity>
</orderDetailReq>
</checkOrderReq>
</impl:checkOrder></SOAP-ENV:Body></SOAP-ENV:Envelope>
 
 
--------------------------- PHP Code ---------------------------
require_once('nusoap.php');
$client =new soapclient('http://localhost:8080/axis/services/Warehouse?wsdl', true);
// Check for an error
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}
// Create the proxy
$proxy = $client->getProxy();
 
$orderDetailReq = array();
$orderDetailReq[] = array(
'productId' => 10001,
'quantity' => 125,
);
$orderDetailReq[] = array(
'productId' => 10002,
'quantity' => 5,
);
$param = array(
'orderDetailReq' => $orderDetailReq,
);
 
$result = $proxy->checkOrder($param);
 
 
 
------------------------------------ Part of WSDL file ------------------------------------
<schema targetNamespace="http://elgr.com/scm/warehouse/processing" xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://schemas.xmlsoaporg/soap/encoding/" />
- <simpleType name="OrStatusType">
- <restriction base="xsd:string">
  <enumeration value="Sufficient" />
  <enumeration value="Insufficient" />
  </restriction>
  </simpleType>
- <complexType name="ProductIdType">
- <simpleContent>
  <extension base="xsd:int" />
  </simpleContent>
  </complexType>
- <complexType name="OrderDetailReqType">
- <sequence>
  <element name="productId" nillable="true" type="tns3:ProductIdType" />
  <element name="quantity" type="xsd:int" />
  </sequence>
  </complexType>
- <complexType name="CheckOrderReqType">
- <sequence>
  <element maxOccurs="unbounded" name="orderDetailReq" nillable="true" type="tns3:OrderDetailReqType" />
  </sequence>
  </complexType>
- <complexType name="OrderDetailRespType">
- <sequence>
  <element name="productId" nillable="true" type="tns3:ProductIdType" />
  <element name="quantity" type="xsd:int" />
  <element name="status" nillable="true" type="tns3:OrStatusType" />
  </sequence>
  </complexType>
- <complexType name="CheckOrderRespType">
- <sequence>
  <element maxOccurs="unbounded" name="orderDetailResp" nillable="true" type="tns3:OrderDetailRespType" />
  </sequence>
  </complexType>
  </schema>
 
- <wsdl:message name="checkOrderRequest">
  <wsdl:part name="checkOrderReq" type="tns3:CheckOrderReqType" />
  </wsdl:message>
 
- <wsdl:portType name="Warehouse">
- <wsdl:operation name="checkOrder" parameterOrder="checkOrderReq">
  <wsdl:input message="impl:checkOrderRequest" name="checkOrderRequest" />
  <wsdl:output message="impl:checkOrderResponse" name="checkOrderResponse" />
  </wsdl:operation>
 
- <wsdl:binding name="WarehouseSoapBinding" type="impl:Warehouse">
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="checkOrder">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="checkOrderRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoaporg/soap/encoding/" namespace="http://elgr.com/scm/warehouse" use="encoded" />
  </wsdl:input>
- <wsdl:output name="checkOrderResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoaporg/soap/encoding/" namespace="http://elgr.com/scm/warehouse" use="encoded" />
  </wsdl:output>
  </wsdl:operation>
Scott Nichol | 26 Apr 15:55 2004

Re: NuSOAP Client help

NuSOAP does not currently support the construct

<complexType name="ProductIdType">
 <simpleContent>
  <extension base="xsd:int" /> 
 </simpleContent>
</complexType>

mainly because extension is a complex process.  However, for this particular scenario, it may not be so
difficult, since it seems to me to be similar to a restriction of a simple type.  Unfortunately, I am very
busy with work for the next few days and will not be able to do any NuSOAP coding.

If you are adventurous, the changes to NuSOAP would be in the vicinity of the following code

   case 'restriction':
    //$this->xdebug("in restriction for currentComplexType: $this->currentComplexType and
currentElement: $this->currentElement");
    if($this->currentElement){
     $this->elements[$this->currentElement]['type'] = $attrs['base'];
    } elseif($this->currentSimpleType){
     $this->simpleTypes[$this->currentSimpleType]['type'] = $attrs['base'];
    } elseif($this->currentComplexType){
     $this->complexTypes[$this->currentComplexType]['restrictionBase'] = $attrs['base'];
     if(strstr($attrs['base'],':') == ':Array'){
      $this->complexTypes[$this->currentComplexType]['phpType'] = 'array';
     }
    }
   break;

As I said, however, I don't have time right away to write decent code for the case 'extension'.

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: "Tan Hong Tat" <hongtat79 <at> hotmail.com>
To: <nusoap-general <at> lists.sourceforge.net>
Sent: Monday, April 26, 2004 3:22 AM
Subject: [Nusoap-general] NuSOAP Client help

Hi,

I've created a client calling the function (checkOrder) connecting to the server using the NuSOAP Toolkit (v1.73).

I wrote the following PHP code, but the productID is missing in the request. Could someone help me with this?
Thank you..  

--------------------------- Request ---------------------------
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
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"  xmlns:impl="http://elgr.com/scm/warehouse"  xmlns:tns3="http://elgr.com/scm/warehouse/processing"><SOAP-ENV:Body>
<impl:checkOrder>
<checkOrderReq xsi:type="tns3:CheckOrderReqType">
<orderDetailReq xsi:type="tns3:OrderDetailReqType">
<productId xsi:type="tns3:ProductIdType"></productId>
<quantity xsi:type="xsd:int">125</quantity>
</orderDetailReq>
<orderDetailReq xsi:type="tns3:OrderDetailReqType">
<productId xsi:type="tns3:ProductIdType"></productId>
<quantity xsi:type="xsd:int">5</quantity>
</orderDetailReq>
</checkOrderReq>
</impl:checkOrder></SOAP-ENV:Body></SOAP-ENV:Envelope> 

--------------------------- PHP Code ---------------------------
require_once('nusoap.php'); 
$client =new soapclient('http://localhost:8080/axis/services/Warehouse?wsdl', true); 
// Check for an error
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}
// Create the proxy
$proxy = $client->getProxy();

$orderDetailReq = array();
$orderDetailReq[] = array(
'productId' => 10001,
'quantity' => 125,
);
$orderDetailReq[] = array(
'productId' => 10002,
'quantity' => 5,
);
$param = array(
'orderDetailReq' => $orderDetailReq,
);

$result = $proxy->checkOrder($param); 

------------------------------------ Part of WSDL file ------------------------------------
<schema targetNamespace="http://elgr.com/scm/warehouse/processing" xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
- <simpleType name="OrStatusType">
- <restriction base="xsd:string">
  <enumeration value="Sufficient" /> 
  <enumeration value="Insufficient" /> 
  </restriction>
  </simpleType>
- <complexType name="ProductIdType">
- <simpleContent>
  <extension base="xsd:int" /> 
  </simpleContent>
  </complexType>
- <complexType name="OrderDetailReqType">
- <sequence>
  <element name="productId" nillable="true" type="tns3:ProductIdType" /> 
  <element name="quantity" type="xsd:int" /> 
  </sequence>
  </complexType>
- <complexType name="CheckOrderReqType">
- <sequence>
  <element maxOccurs="unbounded" name="orderDetailReq" nillable="true"
type="tns3:OrderDetailReqType" /> 
  </sequence>
  </complexType>
- <complexType name="OrderDetailRespType">
- <sequence>
  <element name="productId" nillable="true" type="tns3:ProductIdType" /> 
  <element name="quantity" type="xsd:int" /> 
  <element name="status" nillable="true" type="tns3:OrStatusType" /> 
  </sequence>
  </complexType>
- <complexType name="CheckOrderRespType">
- <sequence>
  <element maxOccurs="unbounded" name="orderDetailResp" nillable="true"
type="tns3:OrderDetailRespType" /> 
  </sequence>
  </complexType>
  </schema>

- <wsdl:message name="checkOrderRequest">
  <wsdl:part name="checkOrderReq" type="tns3:CheckOrderReqType" /> 
  </wsdl:message>

- <wsdl:portType name="Warehouse">
- <wsdl:operation name="checkOrder" parameterOrder="checkOrderReq">
  <wsdl:input message="impl:checkOrderRequest" name="checkOrderRequest" /> 
  <wsdl:output message="impl:checkOrderResponse" name="checkOrderResponse" /> 
  </wsdl:operation>

- <wsdl:binding name="WarehouseSoapBinding" type="impl:Warehouse">
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> 
- <wsdl:operation name="checkOrder">
  <wsdlsoap:operation soapAction="" /> 
- <wsdl:input name="checkOrderRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://elgr.com/scm/warehouse" use="encoded" /> 
  </wsdl:input>
- <wsdl:output name="checkOrderResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://elgr.com/scm/warehouse" use="encoded" /> 
  </wsdl:output>
  </wsdl:operation>

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
Chhai Thach | 27 Apr 07:42 2004
Picon

Cisco AXL Soap

Hi everyone,

 

I’m new to this mailing list and new to SOAP. I’m wondering if anyone wrote a client for Cisco AXL. I can’t seem to get my client to work, seems to be no response from the server when posting a request (doesn’t return). I’m sure the server is fine though.

 

Here’s my code:

 

$s = new soapclient("http://username:password <at> hostname/CCMApi/AXL/V1/soapisapi.dll");                                               

# I also tried using this instead of putting user name and password above.

#$s->setCredentials("username", "password”, 'digest');

$err = $s->getError();

if ($err) {

        print $err;

}

                                                                                                                                               

$msg = '<axl:getPhone xmlns="http://www.cisco.com/AXL/1.0"'.

        'xsi:schemaLocation="http://www.cisco.com/AXL/1.0 '.

        'http://gkar.cisco.com/schema/axlsoap.xsd sequence="1234">' .

        '<phoneName>SEP0003E32A1806</phoneName></axl:getPhone>';

$s->call('getPhone', $msg);     

 

if ($s->fault) {

        echo "FAULT: <p>Code: {$s->faultcode} <br />";

        echo "String: {$s->faultstring} </p>";

}

 

Any help would be appreciated.

 

Thanks,

Chhai

 

marielle | 27 Apr 11:01 2004
Picon

Error: "XML error parsing SOAP payload on line"

Hello,

I'm using the last version of nusoap and a very simple example (helloworld, but 
in french ;) )
I'm having an error that does not appear when I use an older version of nusoap 
(v 0.6.3):

Error: "XML error parsing SOAP payload on line 3: xml declaration not at start 
of external entity"
Using nusoap version 1.73 2004/04/22 with PHP on Win2000

What I don't understand is that I can read the good result in the xml response 
("Bonjour Marielle!")
But it seems there is a problem with the xml response

I know I can use an older version on nuSOAP but I think it would be better to 
understand the problem with the recent one. I think I may not use the functions 
properly but I just made like in tutorials.

Do you have any idea ?

Thanks for all

       Marielle

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Client code: (index.php)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
<?php
include('nusoap.php');

$client = new soapclient('http://20.108.68.2/TestServeurSOAP/hello-
service.php');

//Checks the client creation
if(!$client->getError())
{
	echo "<br>Client créé avec succès";
}
else
{
	echo "<br>Erreur: ".$client->getError();
}

$parametres=array('prenom'=>'Marielle');

$resultat = $client->call('bonjour',$parametres);

//Check the result
if(!$client->getError())
{
	echo "<br>Résultat: ".$resultat;
}
else
{
	echo "<br>Erreur: ".$client->getError();
	echo "<br><hr><br><strong>REQUETE:</strong><br>".nl2br(htmlspecialchars
($client->request, ENT_QUOTES))."<br>";
	echo "<br><hr><br><strong>REPONSE:</strong><br>".nl2br(htmlspecialchars
($client->response, ENT_QUOTES))."<br><hr><br>";
}

?>

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Server code: (hello-service.php)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
<?php
include('nusoap.php');

$serveur = new soap_server();

$serveur->register('bonjour');

function bonjour($prenom)
{
	return "Bonjour $prenom!";
}

$serveur->service($HTTP_RAW_POST_DATA);
?>

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Client result:
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Client créé avec succès
Erreur: XML error parsing SOAP payload on line 3: xml declaration not at start 
of external entity

--------------------------------------------------------------------------------

REQUETE:
POST /TestServeurSOAP/hello-service.php HTTP/1.0
User-Agent: NuSOAP/0.6.7 (1.72)
Host: 20.108.68.2
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""
Content-Length: 545

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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><ns1:bonjour 
xmlns:ns1="http://testuri.org"><prenom 
xsi:type="xsd:string">Marielle</prenom></ns1:bonjour></SOAP-ENV:Body></SOAP-
ENV:Envelope>

--------------------------------------------------------------------------------

REPONSE:
HTTP/1.1 200 OK
Date: Tue, 27 Apr 2004 08:26:20 GMT
Server: Apache/1.3.27 (Win32) PHP/4.3.3
X-Powered-By: PHP/4.3.3
X-SOAP-Server: NuSOAP/0.6.7 (1.72)
Content-Length: 570
Connection: close
Content-Type: text/xml; charset=ISO-8859-1

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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><ns1:bonjourResponse 
xmlns:ns1="http://testuri.org"><return xsi:type="xsd:string">Bonjour Marielle!
</return></ns1:bonjourResponse></SOAP-ENV:Body></SOAP-ENV:Envel

--------------------------------------------------------------------------------

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
Scott Nichol | 27 Apr 14:37 2004

Re: Error: "XML error parsing SOAP payload on line"

I have run the client and server below on my setup (IIS 5, PHP 4.3.4, NuSOAP 1.73) and it works fine.

The response you show appears to have spurious blank lines between the HTTP headers and the body.  I have not
seen this before.

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: <marielle <at> vebr.net>
To: <nusoap-general <at> lists.sourceforge.net>
Sent: Tuesday, April 27, 2004 5:01 AM
Subject: [Nusoap-general] Error: "XML error parsing SOAP payload on line"

Hello,

I'm using the last version of nusoap and a very simple example (helloworld, but 
in french ;) )
I'm having an error that does not appear when I use an older version of nusoap 
(v 0.6.3):

Error: "XML error parsing SOAP payload on line 3: xml declaration not at start 
of external entity"
Using nusoap version 1.73 2004/04/22 with PHP on Win2000

What I don't understand is that I can read the good result in the xml response 
("Bonjour Marielle!")
But it seems there is a problem with the xml response

I know I can use an older version on nuSOAP but I think it would be better to 
understand the problem with the recent one. I think I may not use the functions 
properly but I just made like in tutorials.

Do you have any idea ?

Thanks for all

       Marielle

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Client code: (index.php)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
<?php
include('nusoap.php');

$client = new soapclient('http://20.108.68.2/TestServeurSOAP/hello-
service.php');

//Checks the client creation
if(!$client->getError())
{
echo "<br>Client créé avec succès";
}
else
{
echo "<br>Erreur: ".$client->getError();
}

$parametres=array('prenom'=>'Marielle');

$resultat = $client->call('bonjour',$parametres);

//Check the result
if(!$client->getError())
{
echo "<br>Résultat: ".$resultat;
}
else
{
echo "<br>Erreur: ".$client->getError();
echo "<br><hr><br><strong>REQUETE:</strong><br>".nl2br(htmlspecialchars
($client->request, ENT_QUOTES))."<br>";
echo "<br><hr><br><strong>REPONSE:</strong><br>".nl2br(htmlspecialchars
($client->response, ENT_QUOTES))."<br><hr><br>";
}

?>

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Server code: (hello-service.php)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
<?php
include('nusoap.php');

$serveur = new soap_server();

$serveur->register('bonjour');

function bonjour($prenom)
{
return "Bonjour $prenom!";
}

$serveur->service($HTTP_RAW_POST_DATA);
?>

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Client result:
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Client créé avec succès
Erreur: XML error parsing SOAP payload on line 3: xml declaration not at start 
of external entity

--------------------------------------------------------------------------------

REQUETE:
POST /TestServeurSOAP/hello-service.php HTTP/1.0
User-Agent: NuSOAP/0.6.7 (1.72)
Host: 20.108.68.2
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""
Content-Length: 545

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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><ns1:bonjour 
xmlns:ns1="http://testuri.org"><prenom 
xsi:type="xsd:string">Marielle</prenom></ns1:bonjour></SOAP-ENV:Body></SOAP-
ENV:Envelope>

--------------------------------------------------------------------------------

REPONSE:
HTTP/1.1 200 OK
Date: Tue, 27 Apr 2004 08:26:20 GMT
Server: Apache/1.3.27 (Win32) PHP/4.3.3
X-Powered-By: PHP/4.3.3
X-SOAP-Server: NuSOAP/0.6.7 (1.72)
Content-Length: 570
Connection: close
Content-Type: text/xml; charset=ISO-8859-1

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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><ns1:bonjourResponse 
xmlns:ns1="http://testuri.org"><return xsi:type="xsd:string">Bonjour Marielle!
</return></ns1:bonjourResponse></SOAP-ENV:Body></SOAP-ENV:Envel

--------------------------------------------------------------------------------

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Nusoap-general mailing list
Nusoap-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nusoap-general

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
Scott Nichol | 27 Apr 14:41 2004

Re: Cisco AXL Soap

One problem might be that you are passing a literal XML string to the service.  While NuSOAP at one time
supported this, it was only when the client used WSDL.

For debugging, place the following lines at the bottom of your client code.  If you want help interpretting
the output, just post it here.

echo '<h2>Request</h2><pre>' . htmlspecialchars($s->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($s->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($s->debug_str, ENT_QUOTES) . '</pre>';

BTW, use the setCredentials call, not the username/password in the URL.

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: "Chhai Thach" <chhait <at> frontierisp.com.au>
To: <nusoap-general <at> lists.sourceforge.net>
Sent: Tuesday, April 27, 2004 1:42 AM
Subject: [Nusoap-general] Cisco AXL Soap

Hi everyone,

I'm new to this mailing list and new to SOAP. I'm wondering if anyone
wrote a client for Cisco AXL. I can't seem to get my client to work,
seems to be no response from the server when posting a request (doesn't
return). I'm sure the server is fine though. 

Here's my code:

$s = new
soapclient("http://username:password <at> hostname/CCMApi/AXL/V1/soapisapi.dl
l");                                                

# I also tried using this instead of putting user name and password
above.

#$s->setCredentials("username", "password", 'digest');

$err = $s->getError();

if ($err) {

        print $err;

}

$msg = '<axl:getPhone xmlns="http://www.cisco.com/AXL/1.0"'.

        'xsi:schemaLocation="http://www.cisco.com/AXL/1.0 '.

        'http://gkar.cisco.com/schema/axlsoap.xsd sequence="1234">' .

        '<phoneName>SEP0003E32A1806</phoneName></axl:getPhone>';

$s->call('getPhone', $msg);      

if ($s->fault) {

        echo "FAULT: <p>Code: {$s->faultcode} <br />";

        echo "String: {$s->faultstring} </p>";

}

Any help would be appreciated.

Thanks,

Chhai

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
Chris Boget | 27 Apr 17:25 2004
Picon

Problem with SOAP envelope?

I'm trying to send the following SOAP envelope to my soap
server:

------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Header>
  <!-- security credentials -->
  <s:credentials xmlns:s="urn:examples-org:security"
soap:mustUnderstand="1">
   <username/>
   <password/>
  </s:credentials>
 </soap:Header>
 <soap:Body>
  <IntegrusEPLLitePolicyInterface>
   <UserRecord>
    <firstname>Jerry</firstname>
    <lastname>Kroger</lastname>
    <company>TEST_Jerry K in CA - DBA:test wc CA dba</company>
    <address1>6 Newcastle Ln</address1>
    <address2/>
    <city>Laguna Niguel</city>
    <state>CA</state>
    <zip>90210</zip>
    <phone>9494702111</phone>
    <fax/>
    <email/>
    <billing_email/>
   </UserRecord>
   <org_structure>Sole Proprietor</org_structure>
   <naics_number>321912</naics_number>
   <primary_category>Lumber</primary_category>
   <sub_category>Cut Stock, Resawing Lumber, and Planing</sub_category>
   <fulltime_employee>5</fulltime_employee>
   <seasonal_employee>5</seasonal_employee>
   <riskman_product>Yes</riskman_product>
   <previous_claims>No</previous_claims>
   <claims_not_reported>No</claims_not_reported>
   <rdi_or_fpa>RDI</rdi_or_fpa>
   <material_facts>No</material_facts>
   <AttachedEndorsements>
    <endorsement_type/>
    <premium/>
    <premium_due/>
    <endorsement_body/>
   </AttachedEndorsements>
   <AttachedDocuments>
    <file_name/>
    <file_type/>
    <file_data/>
   </AttachedDocuments>
  </IntegrusEPLLitePolicyInterface>
 </soap:Body>
</soap:Envelope>
------------------------------

but the server is giving me the following error:

------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
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>
  <SOAP-ENV:Fault>
  <faultcode>Server</faultcode>
  <faultactor />
  <faultstring>error in msg parsing: XML error parsing SOAP payload on line
1: not well-formed (invalid token)</faultstring>
  <detail>
  <soapVal xsi:type="xsd:string" />
  </detail>
  </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
------------------------------

What I don't understand with the fault string is that I can
run the envelope through XML Spy's validator and it says that
it's well formed.  So what's going on?

Note: The above envelope is being sent to the NuSOAP server
as a POST from an ASP script.

Any ideas as to where I should concentrate my search to determine
what is going wrong would be greatly appreciated!

Chris

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
Scott Nichol | 27 Apr 19:23 2004

Re: Problem with SOAP envelope?

If you either

    1. add "?debug=1" to the URL to which you POST, or
    2. add the line "$debug = 1;" to your server code

the response from the server will include its debug in an XML comment.

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: "Chris Boget" <chris <at> wild.net>
To: <nusoap-general <at> lists.sourceforge.net>
Sent: Tuesday, April 27, 2004 11:25 AM
Subject: [Nusoap-general] Problem with SOAP envelope?

I'm trying to send the following SOAP envelope to my soap
server:

------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Header>
  <!-- security credentials -->
  <s:credentials xmlns:s="urn:examples-org:security"
soap:mustUnderstand="1">
   <username/>
   <password/>
  </s:credentials>
 </soap:Header>
 <soap:Body>
  <IntegrusEPLLitePolicyInterface>
   <UserRecord>
    <firstname>Jerry</firstname>
    <lastname>Kroger</lastname>
    <company>TEST_Jerry K in CA - DBA:test wc CA dba</company>
    <address1>6 Newcastle Ln</address1>
    <address2/>
    <city>Laguna Niguel</city>
    <state>CA</state>
    <zip>90210</zip>
    <phone>9494702111</phone>
    <fax/>
    <email/>
    <billing_email/>
   </UserRecord>
   <org_structure>Sole Proprietor</org_structure>
   <naics_number>321912</naics_number>
   <primary_category>Lumber</primary_category>
   <sub_category>Cut Stock, Resawing Lumber, and Planing</sub_category>
   <fulltime_employee>5</fulltime_employee>
   <seasonal_employee>5</seasonal_employee>
   <riskman_product>Yes</riskman_product>
   <previous_claims>No</previous_claims>
   <claims_not_reported>No</claims_not_reported>
   <rdi_or_fpa>RDI</rdi_or_fpa>
   <material_facts>No</material_facts>
   <AttachedEndorsements>
    <endorsement_type/>
    <premium/>
    <premium_due/>
    <endorsement_body/>
   </AttachedEndorsements>
   <AttachedDocuments>
    <file_name/>
    <file_type/>
    <file_data/>
   </AttachedDocuments>
  </IntegrusEPLLitePolicyInterface>
 </soap:Body>
</soap:Envelope>
------------------------------

but the server is giving me the following error:

------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
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>
  <SOAP-ENV:Fault>
  <faultcode>Server</faultcode>
  <faultactor />
  <faultstring>error in msg parsing: XML error parsing SOAP payload on line
1: not well-formed (invalid token)</faultstring>
  <detail>
  <soapVal xsi:type="xsd:string" />
  </detail>
  </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
------------------------------

What I don't understand with the fault string is that I can
run the envelope through XML Spy's validator and it says that
it's well formed.  So what's going on?

Note: The above envelope is being sent to the NuSOAP server
as a POST from an ASP script.

Any ideas as to where I should concentrate my search to determine
what is going wrong would be greatly appreciated!

Chris

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Nusoap-general mailing list
Nusoap-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nusoap-general

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
Chris Boget | 27 Apr 19:49 2004
Picon

Re: Problem with SOAP envelope?

>    1. add "?debug=1" to the URL to which you POST, or
>   2. add the line "$debug = 1;" to your server code
>the response from the server will include its debug in an XML comment.

I did the above.  I found out that due to the data (including the envelope)
being posted, the following is what the server was actually getting:

----------------------------

sXMLString=%3CSOAP-ENV%3AEnvelope+SOAP-ENV%3AencodingStyle%3D%22http%3A%2F%2
Fschemas.xmlsoap.org%2Fsoap%2Fencoding%2F%22++xmlns%3ASOAP-ENV%3D%22http%3A%
2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22++xmlns%3Axsd%3D%22http%3A%2
F%2Fwww.w3.org%2F2001%2FXMLSchema%22++xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.o
rg%2F2001%2FXMLSchema-instance%22++xmlns%3ASOAP-ENC%3D%22http%3A%2F%2Fschema
s.xmlsoap.org%2Fsoap%2Fencoding%2F%22++xmlns%3Asi%3D%22http%3A%2F%2Fsoapinte
rop.org%2Fxsd%22%3E%3CSOAP-ENV%3ABody%3E%3Cns1%3APolicyInterfaceWebService+x
mlns%3Ans1%3D%22http%3A%2F%2Ftesturi.org%22%3E%3CsXMLString+xsi%3Atype%3D%22
xsd%3Astring%22%3E%0D%0A%3CIntegrusEPLLitePolicyInterface%3E%0D%0A%09%3CUser
Record%3E%0D%0A%09%09%3Cfirstname%3ETest%3C%2Ffirstname%3E%0D%0A%09%09%3Clas
tname%3EUser%3C%2Flastname%3E%0D%0A%09%09%3Ccompany%3EZed+Zed+Webservice+Tes
t+Company%3C%2Fcompany%3E%0D%0A%09%09%3Caddress1%3EAddress+1%3C%2Faddress1%3
E%0D%0A%09%09%3Caddress2%3EAddress+2%3C%2Faddress2%3E%0D%0A%09%09%3Ccity%3EC
ity%3C%2Fcity%3E%0D%0A%09%09%3Cstate%3EState%3C%2Fstate%3E%0D%0A%09%09%3Ccou
ntry%3EUnited+States%3C%2Fcountry%3E%0D%0A%09%09%3Czip%3E70433%3C%2Fzip%3E%0
D%0A%09%09%3Cphone%3E1231231234%3C%2Fphone%3E%0D%0A%09%09%3Cfax%3E1231231235
%3C%2Ffax%3E%0D%0A%09%09%3Cemail%3Echris%40wild.net%3C%2Femail%3E%0D%0A%09%0
9%3Cbilling_email%3Echris%40wild.net%3C%2Fbilling_email%3E%0D%0A%09%3C%2FUse
rRecord%3E%0D%0A%09%3Corg_structure%3ECorporation%3C%2Forg_structure%3E%0D%0
A%09%3Cnaics_number%3E444220%3C%2Fnaics_number%3E%0D%0A%09%3Cprimary_categor
y%3ERetail%3C%2Fprimary_category%3E%0D%0A%09%3Csub_category%3ENurseries%2C+G
arden+Centers%2C+and+Farm+Supply+Stores%3C%2Fsub_category%3E%0D%0A%09%3Cfull
time_employee%3E25%3C%2Ffulltime_employee%3E%0D%0A%09%3Cseasonal_employee%3E
10%3C%2Fseasonal_employee%3E%0D%0A%09%3Criskman_product%3EYes%3C%2Friskman_p
roduct%3E%0D%0A%09%3Cprevious_claims%3ENo%3C%2Fprevious_claims%3E%0D%0A%09%3
Cclaims_not_reported%3ENo%3C%2Fclaims_not_reported%3E%0D%0A%09%3Crdi_or_fpa%
3EFull+Prior+Acts%3C%2Frdi_or_fpa%3E%0D%0A%09%3Cmaterial_facts%3ENo%3C%2Fmat
erial_facts%3E%0D%0A%09%3CAttachedEndorsements%3E%0D%0A%09%09%3Cendorsement_
type%3Eadditional%3C%2Fendorsement_type%3E%0D%0A%09%09%3Cpremium%3E3.14%3C%2
Fpremium%3E%0D%0A%09%09%3Cpremium_due%3E3.14%3C%2Fpremium_due%3E%0D%0A%09%09
%3Cendorsement_body%3ETest+Additional+Premium+Endorsement%3C%2Fendorsement_b
ody%3E%0D%0A%09%3C%2FAttachedEndorsements%3E%0D%0A%09%3CAttachedEndorsements
%3E%0D%0A%09%09%3Cendorsement_type%3Etext%3C%2Fendorsement_type%3E%0D%0A%09%
09%3Cpremium%3E0%3C%2Fpremium%3E%0D%0A%09%09%3Cpremium_due%3E0%3C%2Fpremium_
due%3E%0D%0A%09%09%3Cendorsement_body%3ETest+Text+Endorsement%3C%2Fendorseme
nt_body%3E%0D%0A%09%3C%2FAttachedEndorsements%3E%0D%0A%09%3CAttachedEndorsem
ents%3E%0D%0A%09%09%3Cendorsement_type%3Eadditional%3C%2Fendorsement_type%3E
%0D%0A%09%09%3Cpremium%3E3.14%3C%2Fpremium%3E%0D%0A%09%09%3Cpremium_due%3E3.
14%3C%2Fpremium_due%3E%0D%0A%09%09%3Cendorsement_body%3ETest+Additional+Prem
ium+Endorsement%3C%2Fendorsement_body%3E%0D%0A%09%3C%2FAttachedEndorsements%
3E%0D%0A%09%3CAttachedEndorsements%3E%0D%0A%09%09%3Cendorsement_type%3Eretur
n%3C%2Fendorsement_type%3E%0D%0A%09%09%3Cpremium%3E3.14%3C%2Fpremium%3E%0D%0
A%09%09%3Cpremium_due%3E3.14%3C%2Fpremium_due%3E%0D%0A%09%09%3Cendorsement_b
ody%3ETest+Return+Premium+Endorsement%3C%2Fendorsement_body%3E%0D%0A%09%3C%2
FAttachedEndorsements%3E%0D%0A%3C%2FIntegrusEPLLitePolicyInterface%3E%3C%2Fs
XMLString%3E%3C%2Fns1%3APolicyInterfaceWebService%3E%3C%2FSOAP-ENV%3ABody%3E
%3C%2FSOAP-ENV%3AEnvelope%3E%0D%0A
----------------------------

With 'sXMLString' being the posted form variable and everything
else being it's value.  So I determined what I needed to do was
strip out the 'sXMLString=' and urldecode the rest of it prior to
it getting passed to the soap_server::service() function.  And, for
the most part, that is working allowing the data to be transferred
via regular HTTP POST or through the NuSOAP client class.

What I'm finding now is that for some reason, the soap_server::service()
function is turning the XML into an array prior to passing it to my
registered function, which is expecting it to be in XML format.  The
data is in XML format when submitted to the NuSOAP server by
a NuSOAP client, but for some reason it's transforming it into an
array when submitted via HTTP post.  The following is the debug
data.  As you can see, when it does the "var_dump()", the data is
an array.

<!--

soap_server: entering parse_request() on 12:47 2004-04-27
soap_server: Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
soap_server: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
soap_server: Accept-Encoding: gzip,deflate
soap_server: Accept-Language: en-us,en;q=0.5
soap_server: Connection: keep-alive
soap_server: Content-Length: 3530
soap_server: Content-Type: application/x-www-form-urlencoded
soap_server: Host: eazypro.wild.net
soap_server: Keep-Alive: 300
soap_server: Referer:
http://eazypro.wild.net/interactive/cron_scripts/test/test_soap_post.php
soap_server: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.6) Gecko/20040206 Firefox/0.8
soap_server: got character encoding: UTF-8
soap_server: parser debug:
soap_parser: Entering soap_parser(), length=2493, encoding=UTF-8
soap_parser: found root struct PolicyInterfaceWebService, pos 2
soap_parser: inside buildVal() for UserRecord(pos 5) of type
soap_parser: inside buildVal() for AttachedEndorsements(pos 30) of type
soap_parser: inside buildVal() for AttachedEndorsements(pos 35) of type
soap_parser: inside buildVal() for AttachedEndorsements(pos 40) of type
soap_parser: inside buildVal() for AttachedEndorsements(pos 45) of type
soap_parser: inside buildVal() for IntegrusEPLLitePolicyInterface(pos 4) of
type
soap_parser: inside buildVal() for sXMLString(pos 3) of type string
soap_parser: inside buildVal() for PolicyInterfaceWebService(pos 2) of type
struct
soap_parser: parsed successfully, found root struct: 2 of name
PolicyInterfaceWebService

soap_server: method name: PolicyInterfaceWebService
soap_server: calling parser->get_response()
soap_server: leaving parse_request() on 12:47 2004-04-27
soap_server: entering invoke_method
soap_server: method 'PolicyInterfaceWebService' exists
soap_server: params var dump array(1) {
  ["sXMLString"]=>
  array(1) {
    ["IntegrusEPLLitePolicyInterface"]=>
    array(16) {
      [0]=>
      array(13) {
        ["firstname"]=>
        string(4) "Test"
        ["lastname"]=>
        string(4) "User"
        ["company"]=>
        string(31) "Zed Zed Webservice Test Company"
        ["address1"]=>
        string(9) "Address 1"
        ["address2"]=>
        string(9) "Address 2"
        ["city"]=>
        string(4) "City"
        ["state"]=>
        string(5) "State"
        ["country"]=>
        string(13) "United States"
        ["zip"]=>
        string(5) "70433"
        ["phone"]=>
        string(10) "1231231234"
        ["fax"]=>
        string(10) "1231231235"
        ["email"]=>
        string(14) "chris <at> wild.net"
        ["billing_email"]=>
        string(14) "chris <at> wild.net"
      }
      [1]=>
      string(11) "Corporation"
      [2]=>
      string(6) "444220"
      [3]=>
      string(6) "Retail"
      [4]=>
      string(49) "Nurseries, Garden Centers, and Farm Supply Stores"
      [5]=>
      string(2) "25"
      [6]=>
      string(2) "10"
      [7]=>
      string(3) "Yes"
      [8]=>
      string(2) "No"
      [9]=>
      string(2) "No"
      [10]=>
      string(15) "Full Prior Acts"
      [11]=>
      string(2) "No"
      [12]=>
      array(4) {
        ["endorsement_type"]=>
        string(10) "additional"
        ["premium"]=>
        string(4) "3.14"
        ["premium_due"]=>
        string(4) "3.14"
        ["endorsement_body"]=>
        string(35) "Test Additional Premium Endorsement"
      }
      [13]=>
      array(4) {
        ["endorsement_type"]=>
        string(4) "text"
        ["premium"]=>
        string(1) "0"
        ["premium_due"]=>
        string(1) "0"
        ["endorsement_body"]=>
        string(21) "Test Text Endorsement"
      }
      [14]=>
      array(4) {
        ["endorsement_type"]=>
        string(10) "additional"
        ["premium"]=>
        string(4) "3.14"
        ["premium_due"]=>
        string(4) "3.14"
        ["endorsement_body"]=>
        string(35) "Test Additional Premium Endorsement"
      }
      [15]=>
      array(4) {
        ["endorsement_type"]=>
        string(6) "return"
        ["premium"]=>
        string(4) "3.14"
        ["premium_due"]=>
        string(4) "3.14"
        ["endorsement_body"]=>
        string(31) "Test Return Premium Endorsement"
      }
    }
  }
}

soap_server: calling 'PolicyInterfaceWebService' with params
soap_server: calling method using call_user_func_array()
soap_server: response var dumpstring(328) "<?xml version="1.0"
encoding="UTF-8"?>
<WebServiceResult>
<NewFailureMessages>
<FailureMessage>[errormessage] : Start tag expected, '<' not found
<br />
[line] : 1<br />
[col] : 1<br />
[directory] : /tmp<br />
[file] : /tmp/a0493d0c91bf3d47b9daa58575448b88.xml<br />
</FailureMessage>
</NewFailureMessages>
</WebServiceResult>
"

soap_server: leaving invoke_method: called method PolicyInterfaceWebService,
received <?xml version="1.0" encoding="UTF-8"?>
<WebServiceResult>
<NewFailureMessages>
<FailureMessage>[errormessage] : Start tag expected, '<' not found
<br />
[line] : 1<br />
[col] : 1<br />
[directory] : /tmp<br />
[file] : /tmp/a0493d0c91bf3d47b9daa58575448b88.xml<br />
</FailureMessage>
</NewFailureMessages>
</WebServiceResult>
 of typestring
soap_server: Entering serialize_return
soap_server: got a(n) string from method
soap_server: serializing return value
soap_server: in serialize_val: <?xml version="1.0" encoding="UTF-8"?>
<WebServiceResult>
<NewFailureMessages>
<FailureMessage>[errormessage] : Start tag expected, '<' not found
<br />
[line] : 1<br />
[col] : 1<br />
[directory] : /tmp<br />
[file] : /tmp/a0493d0c91bf3d47b9daa58575448b88.xml<br />
</FailureMessage>
</NewFailureMessages>
</WebServiceResult>
, return, , , , , encoded
soap_server: return val: string(472) "<return xsi:type="xsd:string">&lt;?xml
version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;WebServiceResult&gt;
&lt;NewFailureMessages&gt;
&lt;FailureMessage&gt;[errormessage] : Start tag expected, &apos;&lt;&apos;
not found
&lt;br /&gt;
[line] : 1&lt;br /&gt;
[col] : 1&lt;br /&gt;
[directory] : /tmp&lt;br /&gt;
[file] : /tmp/a0493d0c91bf3d47b9daa58575448b88.xml&lt;br /&gt;
&lt;/FailureMessage&gt;
&lt;/NewFailureMessages&gt;
&lt;/WebServiceResult&gt;
</return>"

soap_server: serializing response
soap_server: Leaving serialize_return
soap_server: Enter send_response

-->

Chris

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297

Gmane