CPAN::Forum
SOAP-WSDL - Trouble consuming .Net-created WSDL
| Posted on Wed Oct 1 16:52:10 2008 by joealex44 |
| Trouble consuming .Net-created WSDL |
|
I created a .Net web service. (.Net version v2.0.50727) It's WSDL cannot properly be consumed by either the WSDL package or wsdl2perl program. (For Soap::WSDL I used a 2.00.02 ppd for ActivePerl in Win32)
I keep getting the message:
cannot import document for namespace >http://microsoft.com/wsdl/types/< without location at C:/Perl
+/site/lib/SOAP/WSDL/Expat/WSDLParser.pm line 71.
For some reason it cannot interpret the "types" section of the wsdl file properly. All of the complex type data it needs should all be there, although it is not all in one namespace. Do all complex types need to be on one namespace?
Here's an excerpt from the wsdl:
.
.
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://webservices.MyCompany.com/MyWebSe
+rvice/">
<s:import namespace="http://microsoft.com/wsdl/types/"/>
<s:element name="MyFunctionName">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="SomeGUID" type="s1:guid"/>
<s:element minOccurs="1" maxOccurs="1" name="AnotherGUID" type="s1:guid"/>
</s:sequence>
</s:complexType>
</s:element>
.
.
(stuff deleted)
.
.
</s:schema>
<s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
<s:simpleType name="guid">
<s:restriction base="s:string">
<s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"/
+>
</s:restriction>
</s:simpleType>
</s:schema>
</wsdl:types>
.
.
|
| Write a response |
(0)
]