LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-24-2006, 12:01 AM   #1
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Rep: Reputation: 15
PHP wsdl problem


Hi,

I am trying to use a tool provided by systinet.com called wsdlc. it converts wsdl file into
corresponding c++ code.

i tried it over the wsdl file provided by google and it worked fine.

some how with my wsdl file it gives this error

Quote:
junaid@Dev-jsahibzada:~/www$ /usr/local/systinet/bin/wsdlc
http://localhost/PCTools1/TaxCalc.php?wsdl c2php
WSDL compilation failure:

Cannot get 'ISO-8859-1' transcoder from the TranscoderRepository.

thrown in 'virtual WASP_Transcoder*
WASP_XMLTranscoder::setup(WASP_String*, const void*, int,
WASP_BufferedInputStream*, WASP_ExceptionEnv*)' at ../../systinet-
server-cpp-6.5/src/transcoder/XMLTranscoder.cpp:359
caught in 'virtual WASP_Transcoder*
WASP_XMLTranscoder::setup(WASP_String*, const void*, int,
WASP_BufferedInputStream*, WASP_ExceptionEnv*)' at ../../systinet-
server-cpp-6.5/src/transcoder/XMLTranscoder.cpp:362
rethrown in 'virtual WASP_Transcoder*
WASP_XMLTranscoder::setup(WASP_String*, const void*, int,
WASP_BufferedInputStream*, WASP_ExceptionEnv*)' at ../../systinet-
server-cpp-6.5/src/transcoder/XMLTranscoder.cpp:373
caught in 'static WASP_XMLParser*
WASP_XMLParser::create(WASP_InputStream*, WASP_ExceptionEnv*)' at
../../systinet-server-cpp-6.5/src/xml/XMLParser.cpp:59
rethrown in 'static WASP_XMLParser*
WASP_XMLParser::create(WASP_InputStream*, WASP_ExceptionEnv*)' at
../../systinet-server-cpp-6.5/src/xml/XMLParser.cpp:61
caught in 'static WASP_XMLTokenizer*
WASP_XMLLoader::getTokenizer(WASP_VString&, WASP_TransportRepository*,
WASP_ExceptionEnv*)' at ../../systinet-server-cpp-6.5
/src/xml/XMLLoader.cpp:231
rethrown in 'static WASP_XMLTokenizer*
WASP_XMLLoader::getTokenizer(WASP_VString&, WASP_TransportRepository*,
WASP_ExceptionEnv*)' at ../../systinet-server-cpp-6.5
/src/xml/XMLLoader.cpp:233
caught in 'void WASP_WSDLC_CompilerModule::compile(WASP_String*,
WASP_String*, WASP_String*, WASP_StringStringMap*, WASP_ExceptionEnv*)' at
../../../../systinet-server-cpp-6.5
/src/tools/WSDLCompiler/CompilerModule.cpp:229
rethrown in 'void WASP_WSDLC_CompilerModule::compile(WASP_String*,
WASP_String*, WASP_String*, WASP_StringStringMap*, WASP_ExceptionEnv*)' at
../../../../systinet-server-cpp-6.5
/src/tools/WSDLCompiler/CompilerModule.cpp:234
caught in 'int main_wasp_runtime(int, char**)' at
../../../../systinet-server-cpp-6.5/src/tools/WSDLCompiler/Compiler.cpp:1315
what is the meaning of Cannot get ISO.... transcoderRepository?


here is my wsdl file pf the php webservice.

Quote:
<definitions targetNamespace="http://localhost/PCTools">

<types>

<xsd:schema targetNamespace="http://localhost/PCTools">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
</xsd:schema>
</types>

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

<message name="CalculateOntarioTaxResponse">
<part name="return " type="xsd:string"/>
</message>

<portType name="CanadaTaxCalculatorPortType">

<operation name="CalculateOntarioTax">
<input message="tns:CalculateOntarioTaxRequest"/>
<output message="tns:CalculateOntarioTaxResponse"/>
</operation>
</portType>

<binding name="CanadaTaxCalculatorBinding"
type="tns:CanadaTaxCalculatorPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

<operation name="CalculateOntarioTax">
<soapperation soapAction="
http://localhost/PCTools1/TaxCalc.php/CalculateOntarioTax" style="rpc"/>

<input>
<soap:body use="encoded" namespace="http://localhost/PCTools"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>

<output>
<soap:body use="encoded" namespace="http://localhost/PCTools"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>

<service name="CanadaTaxCalculator">

<port name="CanadaTaxCalculatorPort"
binding="tns:CanadaTaxCalculatorBinding">
<soap:address location="http://localhost/PCTools1/TaxCalc.php"/>
</port>
</service>
</definitions>
i think the wsdl file being generated by PHP is not correct.

mostly wsdl files are generated by simple appending a "?" at the end of the php file e.g
taxCalc.php?wsdl

in my case PHP is not generating the correct file.

any reasons why?
 
Old 07-24-2006, 01:15 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
ISO-8859-1
seems to be the source of pain, i guess. It is the character set the php site uses, probably. I would try to give it a different character set, maybe UTF-8 or UTF-16 as xml-based stuff usually prefers unicode, but i'm just guessing...

Last edited by j-ray; 07-24-2006 at 01:16 AM.
 
Old 07-24-2006, 01:22 AM   #3
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Original Poster
Rep: Reputation: 15
where am i suppposed to make this change?

this wsdl file is auto generated by simply appending ?wsdl at the end of the php URL. e.g

http://localhost/taxcalc.php?wsdl

i fail to understand what is wrong with it.
 
Old 07-24-2006, 12:22 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
i dont know wdsl at all but it seems you have to change the characterset of the php-file. Html files and php usually set a chracter set and your taxcalc.php sets it to ISO-8859-1 (western european)
So if you have access to the php files change the character set. If not - i cant help u...
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP/MYSQL problem. Rename of table-name solves the problem... mosedrengen Linux - Software 3 01-06-2006 07:07 AM
soap WSDL generator? Thinking Programming 0 09-21-2005 04:21 AM
New to PHP and Postgressql. Is this a PHP problem or a sql problem. Please help sendas4 Linux - General 2 11-05-2004 01:54 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration