NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Can I use a local WSDL file


Joined: 01 Dec 2003
Posts: 14
Reply with quote
Hi, getting NUSOAP to work with your examples and google was very straight forward - nice job!.

I have an application where I need to use a local WSDL file. The WSDL file is very large and it's recommended by the remote service company to use a copy of the WSDL locally.

How would I go about doing this when using the soapclient method ?

Additionally, do you have any examples of typecasting the variables in the client - static vs dynamic with a WSDL ?


Thanks.
View user's profileFind all posts by bl248Send private message


Joined: 01 Dec 2003
Posts: 14
Reply with quote
It appeared that I should be able to use the nusoap_base function wsdl() to set a local wsdl file.

I get undefined function wsdl() when I use
$soapclient->wsdl("http://localhost/myservice,wsdl");

This is after call new soapclient and the URL being used has been verified.

What am I doing wrong?
View user's profileFind all posts by bl248Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Suppose you have your nusoap server side script accessible as
http://yourserver/path/script.php?WSDL
in this case you may open this link in your client browser and see WSDL file content.
If you open http://yourserver/path/script.php (without WSDL argument) you'll see "auto" generated help and list of functions and their arguments.
If you have too many functions and are afraid of the performance, instead of implementing custom caching, you should use a php cache. There are many cache products available on the market.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 01 Dec 2003
Posts: 14
Reply with quote
I've also learned that I can create my soapclient using the local WSDL and then in the WSDL define the service with a SOAP Address: of the remote service.

I'm trying to get that working but each alternative leads me to new questions and unknowns - oh the fun of learning new things Smile
View user's profileFind all posts by bl248Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Yep.
BTW I think the easiest way to learn a long php script is to step through it with a debugger Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Can I use a local WSDL file
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic