Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WSDL Editor error
WSDL Editor error [message #227399] Wed, 28 January 2009 08:00 Go to next message
Keshavrao  is currently offline Keshavrao Friend
Messages: 34
Registered: July 2009
Member
Hi,

I get the below error when i validate a WSDL file -

"The 'NewWSDLFile' port type specified for the 'NewWSDLFileSOAP' binding
is undefined. Check the 'NewWSDLFile' port type name and ensure it is
defined."

Initially i thought this could be because i dont have a xsd for the policy
i defined in operation tag, so i also added a reference to the policy XSD
but still the problem is not resolved.
But if if remove the policy tag in the operation tag then it works fine
and no error is reported.

you can download the policy XSD from -
http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/NewWSDLFile/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NewWSDLFile"
targetNamespace="http://www.example.org/NewWSDLFile/"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy policy.xsd">
<wsdl:types>
<xsd:schema targetNamespace="http://www.example.org/NewWSDLFile/">
<xsd:element name="NewOperation">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="in" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="NewOperationResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="NewOperationRequest">
<wsdl:part element="tns:NewOperation" name="parameters" />
</wsdl:message>
<wsdl:message name="NewOperationResponse">
<wsdl:part element="tns:NewOperationResponse" name="parameters" />
</wsdl:message>
<wsdl:portType name="NewWSDLFile">
<wsdl:operation name="NewOperation">
<wsp:Policy>
<wsp:PolicyReference URI="http://example.uri" />
</wsp:Policy>
<wsdl:input message="tns:NewOperationRequest" />
<wsdl:output message="tns:NewOperationResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="NewWSDLFileSOAP" type="tns:NewWSDLFile">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="NewOperation">
<soap:operation
soapAction="http://www.example.org/NewWSDLFile/NewOperation" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="NewWSDLFile">
<wsdl:port binding="tns:NewWSDLFileSOAP" name="NewWSDLFileSOAP">
<soap:address location="http://www.example.org/" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


Thanks and regards,
Keshav Veerapaneni.
Re: WSDL Editor error [message #227412 is a reply to message #227399] Wed, 28 January 2009 13:32 Go to previous message
Eclipse UserFriend
Originally posted by: valentinbaciu.hotmail.com

WTP 3.0 does not support extensibility elements for operations.

Your scenario is similar to the one reported in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=235821 and is caused by a
discrepancy between the WSDL schema and the JWSDL/WSDL4J version used by the
WSDL validator.

This was addressed in WTP 3.1 M5 by upgrading to a newer version of WSDL4J.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=252257.

Regards, Valentin

"Keshavrao " <keshavrao.veerapaneni@sap.com> wrote in message
news:38e9ae12b0010e890a5ee02514293acf$1@www.eclipse.org...
> Hi,
>
> I get the below error when i validate a WSDL file -
> "The 'NewWSDLFile' port type specified for the 'NewWSDLFileSOAP' binding
> is undefined. Check the 'NewWSDLFile' port type name and ensure it is
> defined."
>
> Initially i thought this could be because i dont have a xsd for the policy
> i defined in operation tag, so i also added a reference to the policy XSD
> but still the problem is not resolved.
> But if if remove the policy tag in the operation tag then it works fine
> and no error is reported.
>
> you can download the policy XSD from -
> http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:tns="http://www.example.org/NewWSDLFile/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NewWSDLFile"
> targetNamespace="http://www.example.org/NewWSDLFile/"
> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy policy.xsd">
> <wsdl:types>
> <xsd:schema targetNamespace="http://www.example.org/NewWSDLFile/">
> <xsd:element name="NewOperation">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="in" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="NewOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="out" type="xsd:string" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="NewOperationRequest">
> <wsdl:part element="tns:NewOperation" name="parameters" />
> </wsdl:message>
> <wsdl:message name="NewOperationResponse">
> <wsdl:part element="tns:NewOperationResponse" name="parameters" />
> </wsdl:message>
> <wsdl:portType name="NewWSDLFile">
> <wsdl:operation name="NewOperation">
> <wsp:Policy>
> <wsp:PolicyReference URI="http://example.uri" />
> </wsp:Policy>
> <wsdl:input message="tns:NewOperationRequest" />
> <wsdl:output message="tns:NewOperationResponse" />
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="NewWSDLFileSOAP" type="tns:NewWSDLFile">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="NewOperation">
> <soap:operation
> soapAction="http://www.example.org/NewWSDLFile/NewOperation" />
> <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="NewWSDLFile">
> <wsdl:port binding="tns:NewWSDLFileSOAP" name="NewWSDLFileSOAP">
> <soap:address location="http://www.example.org/" />
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
>
> Thanks and regards,
> Keshav Veerapaneni.
>
Previous Topic:.html files always Shift_JIS regardless of preferences or content
Next Topic:Deploy My Eclipse Web Service - Beginner
Goto Forum:
  


Current Time: Sun Nov 23 16:30:29 GMT 2014

Powered by FUDForum. Page generated in 0.01520 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software