WSDL Parse errors

7 messages Options
Embed this post
Permalink
Kevan Moran

WSDL Parse errors

Reply Threaded More More options
Print post
Permalink
I have a WSDL document that is included below. When I try and build my SU or even when I click on validate XML I get the following errors.


D:/localhome/kmoran/netbeans/PaperClassStream/src/PaperClassStream.wsdl:17,8
ERROR: In part "parameters", attribute element's value "tns:GetDataUsingYear" is not a valid xml schema element available in this wsdl file. : Specify a valid schema element value for element attribute.

D:/localhome/kmoran/netbeans/PaperClassStream/src/PaperClassStream.wsdl:20,8
ERROR: In part "parameters", attribute element's value "tns:GetDataUsingYearResponse" is not a valid xml schema element available in this wsdl file. : Specify a valid schema element value for element attribute.

These elements do seem to be defined correctly in XSD0 as follows

  <?xml version="1.0" encoding="utf-8" ?>
- <xs:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/">
  <xs:import schemaLocation="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/Arion.Business.Service.Papers" />
- <xs:element name="GetDataUsingYear">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="Year" type="xs:int" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="GetDataUsingYearResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="GetDataUsingYearResult" nillable="true" type="q1:dcPackage" xmlns:q1="http://schemas.datacontract.org/2004/07/Arion.Business.Service.Papers" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>

If I use SOAPui I can successfully call the service.

It seems to me that the BPEL validation is being overly aggressive but I don't know enough to be sure.

The WSDL is being generated by Microsoft WCF so I don't have much control over its format.

Any help would be appreciated

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="Streams" targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
    <wsdl:types>
        <xsd:schema targetNamespace="http://tempuri.org/Imports">
            <xsd:import schemaLocation="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd0" namespace="http://tempuri.org/"/>
            <xsd:import schemaLocation="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
            <xsd:import schemaLocation="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/Arion.Business.Service.Papers"/>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name="IStreams_GetDataUsingYear_InputMessage">
        <wsdl:part name="parameters" element="tns:GetDataUsingYear"/>
    </wsdl:message>
    <wsdl:message name="IStreams_GetDataUsingYear_OutputMessage">
        <wsdl:part name="parameters" element="tns:GetDataUsingYearResponse"/>
    </wsdl:message>
    <wsdl:portType name="IStreams">
        <wsdl:operation name="GetDataUsingYear">
            <wsdl:input wsaw:Action="http://tempuri.org/IStreams/GetDataUsingYear" message="tns:IStreams_GetDataUsingYear_InputMessage"/>
            <wsdl:output wsaw:Action="http://tempuri.org/IStreams/GetDataUsingYearResponse" message="tns:IStreams_GetDataUsingYear_OutputMessage"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="defaultEp" type="tns:IStreams">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="GetDataUsingYear">
            <soap:operation soapAction="http://tempuri.org/IStreams/GetDataUsingYear" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="Streams">
        <wsdl:port name="defaultEp" binding="tns:defaultEp">
            <soap:address location="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
Shivanand Kini

Re: WSDL Parse errors

Reply Threaded More More options
Print post
Permalink
Hi Kevan,
Can you send me the bpel project that I can take a look at?
Currently, I am guessing that the problem may be caused by imported
schemas not being retrieved  properly.

Thanks,
Shivanand

Kevan Moran wrote:

> I have a WSDL document that is included below. When I try and build my SU or
> even when I click on validate XML I get the following errors.
>
>
> D:/localhome/kmoran/netbeans/PaperClassStream/src/PaperClassStream.wsdl:17,8
> ERROR: In part "parameters", attribute element's value
> "tns:GetDataUsingYear" is not a valid xml schema element available in this
> wsdl file. : Specify a valid schema element value for element attribute.
>
> D:/localhome/kmoran/netbeans/PaperClassStream/src/PaperClassStream.wsdl:20,8
> ERROR: In part "parameters", attribute element's value
> "tns:GetDataUsingYearResponse" is not a valid xml schema element available
> in this wsdl file. : Specify a valid schema element value for element
> attribute.
>
> These elements do seem to be defined correctly in XSD0 as follows
>
>   <?xml version="1.0" encoding="utf-8" ?>
> - <xs:schema elementFormDefault="qualified"
> targetNamespace="http://tempuri.org/"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/">
>   <xs:import
> schemaLocation="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd2"
> namespace="http://schemas.datacontract.org/2004/07/Arion.Business.Service.Papers"
> />
> - <xs:element name="GetDataUsingYear">
> - <xs:complexType>
> - <xs:sequence>
>   <xs:element minOccurs="0" name="Year" type="xs:int" />
>   </xs:sequence>
>   </xs:complexType>
>   </xs:element>
> - <xs:element name="GetDataUsingYearResponse">
> - <xs:complexType>
> - <xs:sequence>
>   <xs:element minOccurs="0" name="GetDataUsingYearResult" nillable="true"
> type="q1:dcPackage"
> xmlns:q1="http://schemas.datacontract.org/2004/07/Arion.Business.Service.Papers"
> />
>   </xs:sequence>
>   </xs:complexType>
>   </xs:element>
>   </xs:schema>
>
> If I use SOAPui I can successfully call the service.
>
> It seems to me that the BPEL validation is being overly aggressive but I
> don't know enough to be sure.
>
> The WSDL is being generated by Microsoft WCF so I don't have much control
> over its format.
>
> Any help would be appreciated
>
> <?xml version="1.0" encoding="utf-8"?>
> <wsdl:definitions name="Streams" targetNamespace="http://tempuri.org/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
> xmlns:tns="http://tempuri.org/"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
> xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> xmlns:wsa10="http://www.w3.org/2005/08/addressing"
> xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
>     <wsdl:types>
>         <xsd:schema targetNamespace="http://tempuri.org/Imports">
>             <xsd:import
> schemaLocation="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd0"
> namespace="http://tempuri.org/"/>
>             <xsd:import
> schemaLocation="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd1"
> namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
>             <xsd:import
> schemaLocation="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd2"
> namespace="http://schemas.datacontract.org/2004/07/Arion.Business.Service.Papers"/>
>         </xsd:schema>
>     </wsdl:types>
>     <wsdl:message name="IStreams_GetDataUsingYear_InputMessage">
>         <wsdl:part name="parameters" element="tns:GetDataUsingYear"/>
>     </wsdl:message>
>     <wsdl:message name="IStreams_GetDataUsingYear_OutputMessage">
>         <wsdl:part name="parameters"
> element="tns:GetDataUsingYearResponse"/>
>     </wsdl:message>
>     <wsdl:portType name="IStreams">
>         <wsdl:operation name="GetDataUsingYear">
>             <wsdl:input
> wsaw:Action="http://tempuri.org/IStreams/GetDataUsingYear"
> message="tns:IStreams_GetDataUsingYear_InputMessage"/>
>             <wsdl:output
> wsaw:Action="http://tempuri.org/IStreams/GetDataUsingYearResponse"
> message="tns:IStreams_GetDataUsingYear_OutputMessage"/>
>         </wsdl:operation>
>     </wsdl:portType>
>     <wsdl:binding name="defaultEp" type="tns:IStreams">
>         <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
>         <wsdl:operation name="GetDataUsingYear">
>             <soap:operation
> soapAction="http://tempuri.org/IStreams/GetDataUsingYear" style="document"/>
>             <wsdl:input>
>                 <soap:body use="literal"/>
>             </wsdl:input>
>             <wsdl:output>
>                 <soap:body use="literal"/>
>             </wsdl:output>
>         </wsdl:operation>
>     </wsdl:binding>
>     <wsdl:service name="Streams">
>         <wsdl:port name="defaultEp" binding="tns:defaultEp">
>             <soap:address
> location="http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc"/>
>         </wsdl:port>
>     </wsdl:service>
> </wsdl:definitions>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Kevan Moran

Re: WSDL Parse errors

Reply Threaded More More options
Print post
Permalink
BPEL below:

<?xml version="1.0" encoding="UTF-8"?>
<process
    name="paperClassStream"
    targetNamespace="http://enterprise.netbeans.org/bpel/PaperClassStream/paperClassStream"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
    xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
    xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
    xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
    xmlns:tns="http://enterprise.netbeans.org/bpel/PaperClassStream/paperClassStream" xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2">
    <import namespace="http://enterprise.netbeans.org/bpel/PaperClassStreamWrapper" location="PaperClassStreamWrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://tempuri.org/" location="PaperClassStream.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://j2ee.netbeans.org/wsdl/PaperClassStream/year" location="year.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <partnerLinks>
        <partnerLink name="PartnerLink2" xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year" partnerLinkType="tns:year" myRole="yearPortTypeRole"/>
        <partnerLink name="PartnerLink1" xmlns:tns="http://enterprise.netbeans.org/bpel/PaperClassStreamWrapper" partnerLinkType="tns:IStreamsLinkType" partnerRole="IStreamsRole"/>
    </partnerLinks>
    <variables>
        <variable name="YearOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year" messageType="tns:yearOperationRequest"/>
        <variable name="GetDataUsingYearOut" xmlns:tns="http://tempuri.org/" messageType="tns:IStreams_GetDataUsingYear_OutputMessage"/>
        <variable name="GetDataUsingYearIn" xmlns:tns="http://tempuri.org/" messageType="tns:IStreams_GetDataUsingYear_InputMessage"/>
    </variables>
    <sequence>
        <receive name="Receive1" createInstance="yes" partnerLink="PartnerLink2" operation="yearOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year" portType="tns:yearPortType" variable="YearOperationIn"/>
        <assign name="Assign1">
            <copy>
                <from>'2009'</from>
                <to variable="GetDataUsingYearIn"/>
            </copy>
        </assign>
        <invoke name="Invoke1" partnerLink="PartnerLink1" operation="GetDataUsingYear" xmlns:tns="http://tempuri.org/" portType="tns:IStreams" inputVariable="GetDataUsingYearIn" outputVariable="GetDataUsingYearOut"/>
    </sequence>
</process>




Hi Kevan,
Can you send me the bpel project that I can take a look at?
Currently, I am guessing that the problem may be caused by imported
schemas not being retrieved  properly.

Thanks,
Shivanand
Shivanand Kini

Re: WSDL Parse errors

Reply Threaded More More options
Print post
Permalink
But the bpel in itself wont help me. I need to see if the schema files
were retrieved properly.

Can you follow the following steps and see if it works?
1. Create new bpel project.
2. Use external wsdl wizard to get the wsdl.
2. Validate wsdl and if there are errors, zip up the newly created
project and send it directly to my email id.


Kevan Moran wrote:

> BPEL below:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <process
>     name="paperClassStream"
>    
> targetNamespace="http://enterprise.netbeans.org/bpel/PaperClassStream/paperClassStream"
>     xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>    
> xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>    
> xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>    
> xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
>    
> xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
>    
> xmlns:tns="http://enterprise.netbeans.org/bpel/PaperClassStream/paperClassStream"
> xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2">
>     <import
> namespace="http://enterprise.netbeans.org/bpel/PaperClassStreamWrapper"
> location="PaperClassStreamWrapper.wsdl"
> importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <import namespace="http://tempuri.org/" location="PaperClassStream.wsdl"
> importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <import namespace="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
> location="year.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <partnerLinks>
>         <partnerLink name="PartnerLink2"
> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
> partnerLinkType="tns:year" myRole="yearPortTypeRole"/>
>         <partnerLink name="PartnerLink1"
> xmlns:tns="http://enterprise.netbeans.org/bpel/PaperClassStreamWrapper"
> partnerLinkType="tns:IStreamsLinkType" partnerRole="IStreamsRole"/>
>     </partnerLinks>
>     <variables>
>         <variable name="YearOperationIn"
> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
> messageType="tns:yearOperationRequest"/>
>         <variable name="GetDataUsingYearOut" xmlns:tns="http://tempuri.org/"
> messageType="tns:IStreams_GetDataUsingYear_OutputMessage"/>
>         <variable name="GetDataUsingYearIn" xmlns:tns="http://tempuri.org/"
> messageType="tns:IStreams_GetDataUsingYear_InputMessage"/>
>     </variables>
>     <sequence>
>         <receive name="Receive1" createInstance="yes"
> partnerLink="PartnerLink2" operation="yearOperation"
> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
> portType="tns:yearPortType" variable="YearOperationIn"/>
>         <assign name="Assign1">
>             <copy>
>                 <from>'2009'</from>
>                 <to variable="GetDataUsingYearIn"/>
>             </copy>
>         </assign>
>         <invoke name="Invoke1" partnerLink="PartnerLink1"
> operation="GetDataUsingYear" xmlns:tns="http://tempuri.org/"
> portType="tns:IStreams" inputVariable="GetDataUsingYearIn"
> outputVariable="GetDataUsingYearOut"/>
>     </sequence>
> </process>
>
>
>
>
> Hi Kevan,
> Can you send me the bpel project that I can take a look at?
> Currently, I am guessing that the problem may be caused by imported
> schemas not being retrieved  properly.
>
> Thanks,
> Shivanand
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Kevan Moran

Re: WSDL Parse errors

Reply Threaded More More options
Print post
Permalink
Hi Shivanand

When I try using the external wizard I get "An I/O error occurred. Server returned HTTP response code: 503 for URL:...." followed by the WSDL URL

Previously I had gone to the WSDL URL, viewed source and cut and pasted into an empty WSDL doc in my project. Looking at the result of the XML validation that I can do after the cut and paste I notice that there were three warnings prior to the errors. Here's one:

WARNING: schema_reference.4: Failed to read schema document 'http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd0', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

So your suspicions seem vindicated. Any clue what could be causing my problem?

Tx
Kevan


Shivanand Kini wrote:
But the bpel in itself wont help me. I need to see if the schema files
were retrieved properly.

Can you follow the following steps and see if it works?
1. Create new bpel project.
2. Use external wsdl wizard to get the wsdl.
2. Validate wsdl and if there are errors, zip up the newly created
project and send it directly to my email id.


Kevan Moran wrote:
> BPEL below:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <process
>     name="paperClassStream"
>    
> targetNamespace="http://enterprise.netbeans.org/bpel/PaperClassStream/paperClassStream"
>     xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>    
> xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>    
> xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>    
> xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
>    
> xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
>    
> xmlns:tns="http://enterprise.netbeans.org/bpel/PaperClassStream/paperClassStream"
> xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2">
>     <import
> namespace="http://enterprise.netbeans.org/bpel/PaperClassStreamWrapper"
> location="PaperClassStreamWrapper.wsdl"
> importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <import namespace="http://tempuri.org/" location="PaperClassStream.wsdl"
> importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <import namespace="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
> location="year.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
>     <partnerLinks>
>         <partnerLink name="PartnerLink2"
> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
> partnerLinkType="tns:year" myRole="yearPortTypeRole"/>
>         <partnerLink name="PartnerLink1"
> xmlns:tns="http://enterprise.netbeans.org/bpel/PaperClassStreamWrapper"
> partnerLinkType="tns:IStreamsLinkType" partnerRole="IStreamsRole"/>
>     </partnerLinks>
>     <variables>
>         <variable name="YearOperationIn"
> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
> messageType="tns:yearOperationRequest"/>
>         <variable name="GetDataUsingYearOut" xmlns:tns="http://tempuri.org/"
> messageType="tns:IStreams_GetDataUsingYear_OutputMessage"/>
>         <variable name="GetDataUsingYearIn" xmlns:tns="http://tempuri.org/"
> messageType="tns:IStreams_GetDataUsingYear_InputMessage"/>
>     </variables>
>     <sequence>
>         <receive name="Receive1" createInstance="yes"
> partnerLink="PartnerLink2" operation="yearOperation"
> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
> portType="tns:yearPortType" variable="YearOperationIn"/>
>         <assign name="Assign1">
>             <copy>
>                 <from>'2009'</from>
>                 <to variable="GetDataUsingYearIn"/>
>             </copy>
>         </assign>
>         <invoke name="Invoke1" partnerLink="PartnerLink1"
> operation="GetDataUsingYear" xmlns:tns="http://tempuri.org/"
> portType="tns:IStreams" inputVariable="GetDataUsingYearIn"
> outputVariable="GetDataUsingYearOut"/>
>     </sequence>
> </process>
>
>
>
>
> Hi Kevan,
> Can you send me the bpel project that I can take a look at?
> Currently, I am guessing that the problem may be caused by imported
> schemas not being retrieved  properly.
>
> Thanks,
> Shivanand
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@open-esb.dev.java.net
For additional commands, e-mail: users-help@open-esb.dev.java.net
Shivanand Kini

Re: WSDL Parse errors

Reply Threaded More More options
Print post
Permalink
Can you put the imported schema location url's into browser, and see if
they are available?

The external wsdl wizard retrieves recursively all the imported
documents, so the document should be valid once its retrieved without
exceptions.
In your case, looks like the server which has the wsdl's are down? Try
the external wsdl wizard, after the server is up.

Thanks,
Shivanand

Kevan Moran wrote:

> Hi Shivanand
>
> When I try using the external wizard I get "An I/O error occurred. Server
> returned HTTP response code: 503 for URL:...." followed by the WSDL URL
>
> Previously I had gone to the WSDL URL, viewed source and cut and pasted into
> an empty WSDL doc in my project. Looking at the result of the XML validation
> that I can do after the cut and paste I notice that there were three
> warnings prior to the errors. Here's one:
>
> WARNING: schema_reference.4: Failed to read schema document
> 'http://asd-robtest3.asd.aut.ac.nz:2963/WCFPapers/Service.svc?xsd=xsd0',
> because 1) could not find the document; 2) the document could not be read;
> 3) the root element of the document is not <xsd:schema>.
>
> So your suspicions seem vindicated. Any clue what could be causing my
> problem?
>
> Tx
> Kevan
>
>
>
> Shivanand Kini wrote:
>  
>> But the bpel in itself wont help me. I need to see if the schema files
>> were retrieved properly.
>>
>> Can you follow the following steps and see if it works?
>> 1. Create new bpel project.
>> 2. Use external wsdl wizard to get the wsdl.
>> 2. Validate wsdl and if there are errors, zip up the newly created
>> project and send it directly to my email id.
>>
>>
>> Kevan Moran wrote:
>>    
>>> BPEL below:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <process
>>>     name="paperClassStream"
>>>    
>>> targetNamespace="http://enterprise.netbeans.org/bpel/PaperClassStream/paperClassStream"
>>>     xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>>>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>>    
>>> xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
>>>    
>>> xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
>>>    
>>> xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
>>>    
>>> xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
>>>    
>>> xmlns:tns="http://enterprise.netbeans.org/bpel/PaperClassStream/paperClassStream"
>>> xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2">
>>>     <import
>>> namespace="http://enterprise.netbeans.org/bpel/PaperClassStreamWrapper"
>>> location="PaperClassStreamWrapper.wsdl"
>>> importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>     <import namespace="http://tempuri.org/"
>>> location="PaperClassStream.wsdl"
>>> importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>     <import
>>> namespace="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
>>> location="year.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
>>>     <partnerLinks>
>>>         <partnerLink name="PartnerLink2"
>>> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
>>> partnerLinkType="tns:year" myRole="yearPortTypeRole"/>
>>>         <partnerLink name="PartnerLink1"
>>> xmlns:tns="http://enterprise.netbeans.org/bpel/PaperClassStreamWrapper"
>>> partnerLinkType="tns:IStreamsLinkType" partnerRole="IStreamsRole"/>
>>>     </partnerLinks>
>>>     <variables>
>>>         <variable name="YearOperationIn"
>>> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
>>> messageType="tns:yearOperationRequest"/>
>>>         <variable name="GetDataUsingYearOut"
>>> xmlns:tns="http://tempuri.org/"
>>> messageType="tns:IStreams_GetDataUsingYear_OutputMessage"/>
>>>         <variable name="GetDataUsingYearIn"
>>> xmlns:tns="http://tempuri.org/"
>>> messageType="tns:IStreams_GetDataUsingYear_InputMessage"/>
>>>     </variables>
>>>     <sequence>
>>>         <receive name="Receive1" createInstance="yes"
>>> partnerLink="PartnerLink2" operation="yearOperation"
>>> xmlns:tns="http://j2ee.netbeans.org/wsdl/PaperClassStream/year"
>>> portType="tns:yearPortType" variable="YearOperationIn"/>
>>>         <assign name="Assign1">
>>>             <copy>
>>>                 <from>'2009'</from>
>>>                 <to variable="GetDataUsingYearIn"/>
>>>             </copy>
>>>         </assign>
>>>         <invoke name="Invoke1" partnerLink="PartnerLink1"
>>> operation="GetDataUsingYear" xmlns:tns="http://tempuri.org/"
>>> portType="tns:IStreams" inputVariable="GetDataUsingYearIn"
>>> outputVariable="GetDataUsingYearOut"/>
>>>     </sequence>
>>> </process>
>>>
>>>
>>>
>>>
>>> Hi Kevan,
>>> Can you send me the bpel project that I can take a look at?
>>> Currently, I am guessing that the problem may be caused by imported
>>> schemas not being retrieved  properly.
>>>
>>> Thanks,
>>> Shivanand
>>>
>>>  
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>>    
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Kevan Moran

Re: WSDL Parse errors

Reply Threaded More More options
Print post
Permalink
Hi Shivanand

I can see the xsd's via the browser, I've appended one of them below. In addition, I mentioned in my original post, I can call the service with no issues if I use a stand alone testing tool such as SOAPui. The problem is clearly either at my end or it is an OpenESB/WCF compatibility type issue rather than simply being a major snafu at the wcf server end.

I've just done a bit more testing and it appears that it is a network domain issue. If I run Netbeans from  a machine in the same domain as the IIS server then I can import the WSDL without error. I am going to do some more tests to try and narrow down the issue.

I suspect I am wasting your time Shivanand, Apologies. I'll post the resolution when I get it or post a better defined issue when I have narrowed it down

Thanks
Kevan

Shivanand Kini wrote:
Can you put the imported schema location url's into browser, and see if
they are available?

The external wsdl wizard retrieves recursively all the imported
documents, so the document should be valid once its retrieved without
exceptions.
In your case, looks like the server which has the wsdl's are down? Try
the external wsdl wizard, after the server is up.

Thanks,
Shivanand