Click here to get back home

WSDL document

 HomeNewsGroups | Search

comp.lang.php - PHP programming language discussions 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
WSDL document PHP Wooer 02-02-2009
---> Re: WSDL document =?ISO-8859-1?Q?...02-02-2009
    `--> Re: WSDL document C. (http://symc...02-03-2009
Posted by PHP Wooer on February 2, 2009, 6:28 am
Please log in for more thread options
I am creating a web service, I have created a wsdl document for it.
WSDL doc and web services and clients are working properly in my local
machine. However when I upload the wsdl file on my remote hosting
server, when I try to browse the uploaded wsdl file (i.e. to open it)
it asks for download.

But in my local machine when I browse the wsdl file it properly
displays its contents.

Why is this happening on the remote server, is there some setting to
be done?

Thanks for any help

Posted by =?ISO-8859-1?Q?=22=C1lvaro_G=2 on February 2, 2009, 6:51 am
Please log in for more thread options
PHP Wooer escribió:
show/hide quoted text

Most likely, your script does not set the appropriate HTTP headers and
the web server is using its default settings.

If unsure, inspect the headers with your favourite Firefox extension
(Live HTTP Headers, Firebug...) in the server where they work and add it
to your PHP code with calls to header().



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--

Posted by PHP Wooer on February 2, 2009, 8:29 am
Please log in for more thread options
On Feb 2, 4:51=A0pm, "=C1lvaro G. Vicario"
show/hide quoted text

Thanks =C1lvaro,

I have checked the XML header of WSDL file and it looks fine to me.
Here is the the wsdl file contents:


show/hide quoted text
<definitions name=3D'Contacts' targetNamespace=3D'http://10.21.1.237/khex/
soap/contacts' xmlns:tns=3D' http://10.21.1.237/khex/soap/contacts'
xmlns:soap=3D'http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd=3D'http://
www.w3.org/2001/XMLSchema' xmlns:soapenc=3D'http://schemas.xmlsoap.org/
soap/encoding/' xmlns:wsdl=3D'http://schemas.xmlsoap.org/wsdl/'
show/hide quoted text

show/hide quoted text

show/hide quoted text

show/hide quoted text

show/hide quoted text
<soap:binding style=3D'rpc' transport=3D'http://schemas.xmlsoap.org/soap/
show/hide quoted text
<soap:operation soapAction=3D'urn:10.21.1.237-khex-soap-
show/hide quoted text
<soap:body use=3D'encoded' namespace=3D'urn:10.21.1.237-khex-soap-
show/hide quoted text
<soap:body use=3D'encoded' namespace=3D'urn:10.21.1.237-khex-soap-
show/hide quoted text

show/hide quoted text
<soap:binding style=3D'rpc' transport=3D'http://schemas.xmlsoap.org/soap/
show/hide quoted text
<soap:operation soapAction=3D'urn:10.21.1.237-khex-soap-
show/hide quoted text
<soap:body use=3D'encoded' namespace=3D'urn:10.21.1.237-khex-soap-
show/hide quoted text
<soap:body use=3D'encoded' namespace=3D'urn:10.21.1.237-khex-soap-
show/hide quoted text

show/hide quoted text
<soap:address location=3D'http://10.21.1.237/khex/soap/contacts/
show/hide quoted text
<soap:address location=3D'http://10.21.1.237/khex/soap/contacts/
show/hide quoted text

Here the IP address is of LAN, however similar file except the IP
address I have uploaded on my remmote server.



Posted by C. (http://symcbean.blogspot.c on February 3, 2009, 7:41 am
Please log in for more thread options
show/hide quoted text
l
show/hide quoted text
t
show/hide quoted text

No - not the header in the XML file, the header returned by the web
server.

If the mimetype is not correctly configured in your service provider's
webserver then you can specify it manually by wrapping the file in PHP
code:

<?php

header("Content-type: text/xml");

frint file_get_contents("my_wsdl_file.xml");

show/hide quoted text

C.

Similar ThreadsPosted
Article missing from server December 6, 2005, 1:44 am
Article missing from server December 6, 2005, 1:45 am
my wsdl code November 23, 2008, 12:01 am
PHP doesn't support XSD validation through WSDL? April 21, 2007, 10:26 am
New to webservices, wsdl and nusoap April 23, 2007, 9:09 am
Using SoapClient's non-WSDL Mode September 17, 2008, 10:07 am
Status quo of WSDL 2.0 Support in PHP November 4, 2008, 3:11 pm
PHP5 consume web service without wsdl February 14, 2006, 6:41 am
SOAP and auto WSDL writers October 28, 2006, 7:40 pm
SOAP and auto WSDL writers October 28, 2006, 7:41 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy