Solved

Creating Web Services with SOAP:WSDL

Posted on 2011-03-07
4
1,549 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
ID: 35059302
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
ID: 35061277
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
ID: 35061415
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
ID: 35064973
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Awk Question 2 124
ASMX or WCF service using JSON or SOAP 2 112
File Find regex problem 4 60
Is it true to say that Python is successor of Perl? 7 138
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 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