logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Antwort: RE: Antwort: SOAP Request Formatting: msg#00013

Subject: Antwort: RE: Antwort: SOAP Request Formatting
Hello David,

Oooops sorry for not pointing out that all classes are again included in
the nusoap class.
Sorry but for your next question I don't really have a solution as I'm not
so deep into nusoap,
 just wanted to use it currently for an project and ran into your prior
problem and some other serious
problems, like not extracting/resolving my operations provided in a wsdl
file. Even posted
a bug but there was no response so maintenance might be an other fact to
consider.

So I moved to the PHP5 Soap client because there my operations are resolved
correctly and the usage
 is more comfortable.

Maybe you should take a look at http://de3.php.net/manual/en/ref.soap.php
for more info and if this fits your needs and PHP version.

Cheers,

Raphael



                                                                           
             "David Fontaine"                                              
             <fd@aces-informat                                             
             ique.be>                                                   An 
                                         "'Raphael Stolt'"                 
             22.02.2007 16:32            <Raphael.Stolt@xxxxxxxxxxxxx>     
                                                                     Kopie 
                                                                           
                                                                     Thema 
                                         RE: Antwort: [Nusoap-general]     
                                         SOAP Request Formatting           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hello Raphael,

After some experiments, I discovered the nsXXXX prefix was added in
nusoap.php, line 6617.
I edited the source code and now I'm getting the following 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:elink="http://www.elinksuite.com";>

  <SOAP-ENV:Body>
    <elink:login xmlns:elink="http://www.elinksuite.com";>
      <login xsi:type="xsd:string">myuser</login>
      <password xsi:type="xsd:string">mypassword</password>
      <dbpath xsi:type="xsd:string">mydb</dbpath>
    </elink:login>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

It's getting better. Now I must find out how to change :

<elink:login xmlns:elink="http://www.elinksuite.com";>
  <login xsi:type="xsd:string">myuser</login>
  <password xsi:type="xsd:string">mypassword</password>
  <dbpath xsi:type="xsd:string">mydb</dbpath>
</elink:login>

Into :

<elink:login login="myuser" password="mypassword" dbpath="mydb"/>

(see previous mail).

I am wondering if I should continue using nusoap, or should I write my own
XML parser for accessing the soap server I want to use ?

Sorry for my bad english,

David





> -----Message d'origine-----
> De : Raphael Stolt [mailto:Raphael.Stolt@xxxxxxxxxxxxx]
> Envoyé : jeudi 22 février 2007 14:54
> À : David
> Cc : nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> Objet : Antwort: [Nusoap-general] SOAP Request Formatting
>
> Hello David,
>
> as far as I know the ns:<values> are build in the
> <class.nusoap_base.php> method <serialize_val> via an fix
> prefix(the ns) and an random generated number for every request.
> It's seems like you can pass your own namespace prefix, but
> not shure about that.
>
> Hope thats a starting point.
>
> Cheers Raphael
>
>
>
>
>
>
>              "David"
>
>              <fd@aces-informat
>
>              ique.be>
>           An
>              Gesendet von:
> nusoap-general@xxxxxxxxxxxxxxxxxx
>              nusoap-general-bo           net
>
>              unces@xxxxxxxxxxx
>        Kopie
>              eforge.net
>
>
>        Thema
>                                          [Nusoap-general]
> SOAP Request
>              22.02.2007 14:46            Formatting
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hello,
>
> I'm new to Nusoap and I'd like to use it to query a soap
> server but I have some troubles.
>
> The server documentation says a request must look like this :
>
> <SOAP-ENV:Envelope
>   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope";
>   xmlns:elink="http://www.elinksuite.com";>
>   <SOAP-ENV:Body>
>     <elink:login login="myuser" password="mypassword" dbpath="mydb"/>
>     <elink:common ID="1">
>       <data type="currentuserid" ID="2"/>
>       <data type="currentdatabasealias" ID="3"/>
>       <data type="daughterdb" ID="4"/>
>     </elink:common>
>     <elink:logout/>
>   </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> I can set the --xmlns:elink="http://www.elinksuite.com"--
> line like this :
>
> $client->namespaces['elink'] = 'http://www.elinksuite.com';
>
> but I can't create nodes like <elink:login login="myuser"
> password="mypassword" dbpath="mydb"/>.
>
> The following code :
>
> $result = $client->call('CalledFunction', $params, "elink");
>
> produces the following 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:elink="http://www.elinksuite.com";>
>   <SOAP-ENV:Body>
>     <ns3624:CalledFunction xmlns:ns3624="http://tempuri.org";>
>       <param1 xsi:type="xsd:string">value1</param1>
>     </ns3624:CalledFunction>
>   </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> Where do "ns3624" come from ? Any help would be appreciated.
>
> Thanks in advance,
>
> David
>
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT Join
> SourceForge.net's Techsay panel and you'll get the chance to
> share your opinions on IT & business topics through brief
> surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
&CID=DEVDEV
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
>
>
>




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>