Solved

Creating Web Services with SOAP:WSDL

Posted on 2011-03-07
4
1,538 Views
Last Modified: 2012-08-13
When I run the following code I get and error:

perl wsdl2perl.pl -b base_dir URL

Open in new window


I select any directory for base_dir and replaced the wsdl with URL.

The error is:

cannot import document for namespace >http://schemas.xmlsoap.org/soap/encoding/< without location at /mywork/hub/share/apps/BuildTools/Linux/glibc-2.3.6/x86_64/perl/perl-5.8.8-tmw-027/lib/site_perl/5.8.8/SOAP/WSDL/Expat/WSDLParser.pm line 81.
found unrecognised attribute {http://schemas.xmlsoap.org/wsdl/}arrayType (ignored) at /mywork/hub/share/apps/BuildTools/Linux/glibc-2.3.6/x86_64/perl/perl-5.8.8-tmw-027/lib/site_perl/5.8.8/SOAP/WSDL/Base.pm line 130.
found unrecognised attribute {http://schemas.xmlsoap.org/wsdl/}arrayType (ignored) at /mywork/hub/share/apps/BuildTools/Linux/glibc-2.3.6/x86_64/perl/perl-5.8.8-tmw-027/lib/site_perl/5.8.8/SOAP/WSDL/Base.pm line 130.
found unrecognised attribute {http://schemas.xmlsoap.org/wsdl/}arrayType (ignored) at /mywork/hub/share/apps/BuildTools/Linux/glibc-2.3.6/x86_64/perl/perl-5.8.8-tmw-027/lib/site_perl/5.8.8/SOAP/WSDL/Base.pm line 130.
found unrecognised attribute {http://schemas.xmlsoap.org/wsdl/}arrayType (ignored) at /mywork/hub/share/apps/BuildTools/Linux/glibc-2.3.6/x86_64/perl/perl-5.8.8-tmw-027/lib/site_perl/5.8.8/SOAP/WSDL/Base.pm line 130.
found unrecognised attribute {http://schemas.xmlsoap.org/wsdl/}arrayType (ignored) at /mywork/hub/share/apps/BuildTools/Linux/glibc-2.3.6/x86_64/perl/perl-5.8.8-tmw-027/lib/site_perl/5.8.8/SOAP/WSDL/Base.pm line 130.
/mywork/hub/share/apps/BuildTools/Linux/glibc-2.3.6/x86_64/perl/perl-5.8.8-tmw-027/lib/site_perl/5.8.8/SOAP/WSDL/Generator/Template/XSD\complexType.tt NOT_FOUND error - http://schemas.xmlsoap.org/soap/encoding/ string not found at /mywork/hub/share/apps/BuildTools/Linux/glibc-2.3.6/x86_64/perl/perl-5.8.8-tmw-027/lib/site_perl/5.8.8/SOAP/WSDL/Base.pm line 62
0
Comment
Question by:Tolgar
  • 2
4 Comments
 

Author Comment

by:Tolgar
Comment Utility
You can refer to the following page if it helps.

http://search.cpan.org/~mkutter/SOAP-WSDL-2.00.10/lib/SOAP/WSDL/Manual.pod

Thanks,
0
 
LVL 13

Expert Comment

by:Carl Bohman
Comment Utility
Are you litterally typing the command as you listed in your question or are you substituting values in for "base_dir" and "URL"?

http://search.cpan.org/~mkutter/SOAP-WSDL-2.00.10/bin/wsdl2perl.pl
0
 
LVL 13

Expert Comment

by:Carl Bohman
Comment Utility
I have never used SOAP with Perl before, but here's one solution I found online:
http://cpanforum.com/posts/11954
0
 
LVL 7

Accepted Solution

by:
samenglish earned 500 total points
Comment Utility
Looks like your wsdl2perl app might not support the type of wsdl you have been supplied with. For example the wsdl might have been created by a newer technology (eg. WCF) than your wsdl2perl can support. You need to investigate the limitations of your wsdl2perl app (does it support SOAP 1.2? or an older version of SOAP?) and maybe ask for a simpler (basicHttpBinding) wsdl from the same service. Many new WCF services are having to produce older style wsdls for the sake of interoperability with legacy systems. Hope that helps.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now