I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-09-11 11:58:35-07 by cgouraud
wsdl2perl running error : NOT_FOUND error
Hi,
I have the following error running wsdl2perl.pl :

$PERL_DIR/lib/site_perl/5.8.8/SOAP/WSDL/Generator/Template/XSD\complexType.tt NOT_FOUND error - htt +p://myservices/foo/bar Vpn not found at $PERL_DIR/lib/site_perl/5.8.8/SOAP/WSDL/Base.pm line 62

I have found another subject with a similar error but it can't help with the complex wsdl/xsd files I have to use
Regards,
CG
Direct Responses: 9740 | Write a response
Posted on 2009-01-15 14:31:58-08 by ejaincom in response to 8785
Re: wsdl2perl running error : NOT_FOUND error
I am also facing the same problem and i do not know how to fix this,
Pl. someone help me urgently
thanks
abhishek
Direct Responses: 9759 | Write a response
Posted on 2009-01-19 14:38:56-08 by ejaincom in response to 9740
Re: wsdl2perl running error : NOT_FOUND error
pl someone help me on this, i have no clue.
abhi
Direct Responses: 9767 | Write a response
Posted on 2009-01-20 18:05:19-08 by mkutter in response to 9759
Re: wsdl2perl running error : NOT_FOUND error
Hi,

please provide more information - your platform, the command issued, preferably the full error message, and, if you can, the WSDL. It's incredibly hard to guess what went wrong when I don't know what exactly happened.

Martin
Direct Responses: 9768 | Write a response
Posted on 2009-01-21 04:32:02-08 by ejaincom in response to 9767
Re: wsdl2perl running error : NOT_FOUND error
Platform: Centos 4.4
Command with the wsdl :
perl /usr/bin/wsdl2perl.pl -b /dir/tmp4 https://webservices.netsuite.com/wsdl/v2008_2_0/netsuite.wsdl
After the mnessage the programs exits itself. The error message after the following messages like
https://webservices.netsuite.com/xsd/platform/v2008_2_0/faultTypes.xsd already imported; ignoring it.
https://webservices.netsuite.com/xsd/platform/v2008_2_0/core.xsd already imported; ignoring it.
....
Creating complexType class MyTypes/ShipAddress.pm
/usr/lib/perl5/site_perl/5.8.8/SOAP/WSDL/Generator/Template/XSD\complexType.tt NOT_FOUND error - urn:types.common.platform.webservices.netsuite.com Country not found at /usr/lib/perl5/site_perl/5.8.8/SOAP/WSDL/Base.pm line 67
Early reply will be appreciated.
thanks - abhi
Direct Responses: 9790 | 9791 | Write a response
Posted on 2009-01-23 16:14:56-08 by ejaincom in response to 9768
Re: wsdl2perl running error : NOT_FOUND error
pl. reply on the previous post.
abhi
Direct Responses: Write a response
Posted on 2009-01-23 17:54:30-08 by mkutter in response to 9768
Re: wsdl2perl running error : NOT_FOUND error
abhi,

SOAP::WSDL does not resolve the prefix "platformCommonTyp" to the URI "urn:types.common_2008_2.platform.webservices.netsuite.com" effective in the schema defining the type "ShipAddress", but to "urn:types.common.platform.webservices.netsuite.com", which is the URI assigned to the same prefix in a included Schema.

Thus, it cannot find the type "Country", which is present in the namespace "urn:types.common_2008_2.platform.webservices.netsuite.com", but not in "urn:types.common.platform.webservices.netsuite.com".

This is a bug in SOAP::WSDL.
Editing the XML Schema to use unique prefixes for unique URIs is a workaround.

Martin
Direct Responses: 9809 | Write a response
Posted on 2009-01-27 12:51:52-08 by ejaincom in response to 9791
Re: wsdl2perl running error : NOT_FOUND error
Hi
I am not sure if you can help me at this, but i got the following error while using my code,

Message was:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: Expected {urn:core_2008_2.platform.webservices.netsuite.com}email, found {urn:messages_2008_2.platform.webservices.netsuite.com}email</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">partners-java001.svale.netledger.com</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
Pl. let me know what i can do, in case you have an idea
thanks
abhishek
Direct Responses: 9810 | Write a response
Posted on 2009-01-27 13:04:22-08 by ejaincom in response to 9809
Re: wsdl2perl running error : NOT_FOUND error
just to tell the code i wrote was:

use MyInterfaces::NetSuiteService::NetSuitePort;
my $int2 = MyInterfaces::NetSuiteService::NetSuitePort->new();

my $response;
$response = $int2->login(
{
passport => {
email => 'xxxxxxxxxx',
password => 'xxxxxxx',
account => 'xxxxxx',
role => {
},
},
}
);
print $response;
Direct Responses: 9824 | Write a response
Posted on 2009-01-29 09:54:04-08 by mkutter in response to 9810
Re: wsdl2perl running error : NOT_FOUND error
Hi,
It looks like SOAP::WSDL accidentally included a object from a wrong namespace in the request.
This may happen if there's the same class in more than one namespace - SOAP::WSDL's namespace support is still quite weak.

You may look at the generated "mail" class (probably MyTypes::mail) to confirm this. If the class in the other namespace is not used, you may just change the namespace values - but this may have side effects in other SOAP calls.

Martin
Direct Responses: 9826 | Write a response
Posted on 2009-01-29 11:13:59-08 by ejaincom in response to 9824
Re: wsdl2perl running error : NOT_FOUND error
Thanks for replying,
there is no MyTypes::mail class generated , infact there was a function get_xmlns in MyElements/login.pm .
i changed the subroutine sub get_xmlns { 'urn:core_2008_2.platform.webservices.netsuite.com'} to sub get_xmlns { 'urn:messages_2008_2.platform.webservices.netsuite.com' }
and the code worked.
So the code was confusing on the namespace.
I would like to know how can i get to know of the other such confusing points.
Pl. let me know if you are getting an idea on this,
Thanks,

abhi
Direct Responses: Write a response