Jump to content

Search the Community

Showing results for tags 'wsdl'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH


  • Community Calendar




Website URL








Found 3 results

  1. Used Wsdl with php and xml file

    Hello everyone, I have my wsdl file and a php page with Soap and I would use the XML files, but I'm a bit lost with namespace and schemaLocation when I call the xml file it appears empty, i just take the some line to show the namespace and Schemaslocation. wsdl: <?xml version="1.0" encoding="UTF-8"?><definitions xmlns:typens="urn:b2bHotelSOAP" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" name="b2bHotelSOAP" targetNamespace="urn:b2bHotelSOAP"> <types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:b2bHotelSOAP"> <!--<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>--> <complexType name="roomArray"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:paxesArray[]"/> </restriction> </complexContent> </complexType> <complexType name="paxesArray"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:pax[]"/> </restriction> </complexContent> XML : <?xml version="1.0" encoding="UTF-8" ?> - <XMLResponse schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:b2bHotelSOAP" > <ResponseType>HotelListResponse</ResponseType> - <RequestInfo> <AffiliateCode>XX0000</AffiliateCode> <AffRequestId>XXX</AffRequestId> <AffRequestTime>yyyy-mm-ddThh:mm:ss</AffRequestTime> </RequestInfo> <TotalNumber>XXXXX</TotalNumber> - <Hotels> Thank you !
  2. I want use a WSDL file who wrote.With two porttypes <wsdl:portType name="ContentDirectory"> <wsdl:operation name="GetSortCapabilities"> <wsdl:input message="tns:GetSortCapabilitiesRequest" /> <wsdl:output message="tns:GetSortCapabilitiesResponse" /> </wsdl:operation> <wsdl:operation name="GetSystemUpdateID"> <wsdl:input message="tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetSystemUpdateIDResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:portType name="ConnectionManager"> <wsdl:operation name="GetCurrentConnectionIDs"> <wsdl:input message= "tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetCurrentConnectionIDsResponse" /> </wsdl:operation> <wsdl:operation name="GetProtocolInfo"> <wsdl:input message="tns:NOTHING_INPUT" /> <wsdl:output message="tns:GetProtocolInfoResponse" /> </wsdl:operation> </wsdl:portType> And two binding <wsdl:binding name="ContentDirectory" type="tns:ContentDirectory"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="Browse"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/Browse/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetSystemUpdateID"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetSystemUpdateID/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="ConnectionManager" type="tns:ConnectionManager"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="GetCurrentConnectionIDs"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetCurrentConnectionIDs/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetProtocolInfo"> <soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetProtocolInfo/" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> And service with two ports <wsdl:service name="Media"> <wsdl:port name="ContentDirectory" binding="tns:ContentDirectory"> <soap:address location="http://localhost:8080/MediaServer/TESTWSDL" /> </wsdl:port> <wsdl:port name="ConnectionManager" binding="tns:ConnectionManager"> <soap:address location="http://localhost:8080/MediaServer/TESTWSDL" /> </wsdl:port> </wsdl:service> When i use this device this only one port my client WSDLreader read my WSDL. Ben i use this, with both port i have an error. (same with a different location) I didn't find in W3 WSDL spec a problem with that. What is the solution? Regards Rem
  3. Soapclient And The Ndfd Weather Database

    So I've been trying to put together a little weather application using the NOAA's weather feed. The site I am connecting to is http://graphical.weather.gov/xml/ Basically, I'm a newbie when it comes to PHP. I want to code it such that a user can enter a zip code and retrieve a host of climatic data. If any one is familiar with tapping into this database (the NDFD) and could help, I'd be very grateful. Below is the code. I first want to retrieve the latitude and longitude of a given zip code and then, because both coordinates are given as a string, I want to break them up into $Lat and $Lon, respectively, and I've been successful with these specific steps. However, I believe I am running into trouble generating the XML from the $result variable and running into trouble with the subsequent parsing on the XML. I'm thinking the issue is with how I am calling the NuSoap client and associated NDFD server file. Anyways, here's the code, and I'd be very appreciative of any help. Thanks. <?php /* http://sourceforge.net/projects/nusoap/ */require('../lib/nusoap.php'); $getZip = array('zipCodeList' => $_GET['zipCodeList']); try{ $c = new nusoap_client('http://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl', 'wsdl'); $LatLonList = $c->call('LatLonListZipCode',$getZip); $LatLonStr = $LatLonList; $LatLon = explode(',', $LatLonStr, 2);$Lat = ($LatLon[0]);$Lon = ($LatLon[1]); $parameters = array('product' => 'glance','numDays' => 5,'format' => '24 hourly','latitude' => $Lat, 'longitude' => $Lon); $result = $c->call('NDFDgen', $parameters);}catch (Excepion $ex){/* nuSOAP throws an exception is there was a problem fetching the data */echo 'failed';} /* parse the XML data into a giant data object */try{$xml = new SimpleXMLElement($result);}catch (Exception $ex){/* the XML was probably invalid */die('Failed to parse the XML');}