Re: [SOAP] QueryString in POST
| From: | brad lafountain | Date: | Mon, 10 Jun 2002 17:16:54 +0000 |
| Subject: | Re: [SOAP] QueryString in POST | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-99@lists.php.net to get a copy of this message | ||
--- Javier Szyszlican <php@szysz.com> wrote:
> Hi,
>
> I copied it from perl's SOAP::LITE.
> Yes I was doing exactly that.
>
> If I could add multiple classes or use nested classes directly would be
> great.
>
Yeah php-soap will eventually support multiple classes... So im not going to
do anything with your patch.
Thanks for your feedback tho.
- brad
> Javier
>
> On Monday 10 June 2002 01:33, brad lafountain wrote:
> > hello,
> >
> > I was looking at your patch... and this type of path won't work with too
> > many other soap implemntations..
> >
> > Im curious.. what exactly are you trying to do.
> >
> > are you doing something like this
> >
> > $server->setClass($_GET['var']);
> >
> >
> > Im pretty sure im going to change the server object to be allowed to be
> > bound to multiple classes. So it might look like this.
> >
> > $server->addClass("className", "urn:className");
> > $server->addClass("classNameTwo", "urn:classNameTwo");
> >
> > and when the client connects
> > $client = new
> > SoapObject("http://localhost/server.php",
> > "urn:className");
> >
> > it will use the correct class occoriding to the urn..
> >
> > Is this what you are trying to do?
> >
> > -brad
> >
> > --- Javier Szyszlican <php@szysz.com> wrote:
> > > Brad:
> > >
> > > I've made this extra-simple modification to allow sending a variable in
> > > the querystring. I've added the phpurl->query to the post.
> > >
> > > I needed this to tell the server which class (of many classes) do I want
> > > the SoapServer to be. Because I didnt find a way to catch the urn.
> > >
> > > I'm a newbie at PHP extension programming, I'll use phpsoap as
> > > communication protocol between the backend and frontend's for my project
> > > JFFNMS (jffnms.sf.net).
> > >
> > > Javier
> > >
> > > ext/soap/php_http.c: lines 64.
> > >
> > > char *header = "POST %s?%s HTTP/1.1\r\nConnection:
> > > close\r\nAccept: text/html; text/xml; text/plain\r\nUser-Agent: PHP SOAP
> > > 0.1\r\nHost: %s\r\nContent-Type: text/xml\r\nContent-Length:
> > > %d\r\nSOAPAction: \"%s\"\r\n";
> > > int size = strlen(header) + strlen(phpurl->host) +
> > > strlen(phpurl->path) + strlen(phpurl->query) + 10;
> > >
> > > // TODO: Add authication
> > > if(sdl != NULL)
> > > {
> > > // TODO: need to grab soap action from wsdl....
> > > soap_headers = emalloc(size +
> > > strlen(soapaction)); sprintf(soap_headers, header, phpurl->path,
> > > phpurl->query, phpurl->host, buf_size, soapaction);
> > > }
> > > else
> > > {
> > > soap_headers = emalloc(size +
> > > strlen(soapaction)); sprintf(soap_headers, header, phpurl->path,
> > > phpurl->query, phpurl->host, buf_size, soapaction);
> > > }
> > >
> > >
> > > --
> > > PHP Soap Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com