XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 18th, 2004, 04:02 PM
allididntwantto allididntwantto is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 24 allididntwantto User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 48 sec
Reputation Power: 0
Question WSDL Namespaces - Seriously Confused!

The more I read on WSDL, the more I'm getting confused about namespaces and urn etc... please help me! Here's my WSDL file atm...


<?xml version="1.0" encoding="ISO-8859-1"?>
<definitions name="TestService"
targetNamespace="http://myserver:1618/testing/soap/soap_test.wsdl"
xmlns:tns="http://myserver:1618/testing/soap/soap_test.wsdl"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">

<message name="helloResponse">
<part name="hellomsg" type="xsd:string"/>
</message>

<portType name="TestServicePortType">
<operation name="hello">
<output message="tns:helloResponse"/>
</operation>
</portType>

<binding name="TestServiceBinding" type="tns:TestServicePortType">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="hello">
<soap:operation soapAction="hello"/>
<output>
<soap:body use="encoded" namespace="urn:examples:helloservice"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>

<service name="TestService">
<port name="TestServicePort" binding="TestServiceBinding">
<soap:address location="http://myserver:1618/testing/soap/soap_test_server.php"/>
</port>
</service>
</definitions>


I've obviously replaced my server name with "myserver" in the WSDL file I've posted here. This WSDL file doesn't seem to work correctly when called though :( The function available in the PHP SOAP server script is hello(). If someone could explain namespaces and urn etc. to me and what's wrong with this WSDL file I'd be very grateful!

Thanks a lot,

Simon

Last edited by allididntwantto : May 18th, 2004 at 04:04 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > WSDL Namespaces - Seriously Confused!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT