Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350540

Summary: Error when defining a port type from a WSDL file
Product: z_Archived Reporter: Vincent Zurczak <vincent.zurczak>
Component: BPELAssignee: Vincent Zurczak <vincent.zurczak>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: grid.qian, vincent.zurczak
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
A WSDL to test the file import. none

Description Vincent Zurczak CLA 2011-06-28 05:51:47 EDT
+ Create a new partner link.
+ In its properties, click Browse.
+ Click Add WSDL.
+ Choose File and select a WSDL file on your disk.
+ End up the wizard to complete the definition of the partner link.

Save the BPEL process.
An error appears in both the BPEL (port type not found) and in the WSDL Artifacts (the newly imported WSDL could not be parsed).

The error in fact is due to an invalid referencement.
As an example, here is what was in my WSDL Artifacts:

 <import location="D:\BackupBureau\WSDLs\tuxDroid.wsdl" namespace="http://tuxdroid.ebmwebsourcing.com/"/>

instead of

 <import location="file:/D:/BackupBureau/WSDLs/tuxDroid.wsdl" namespace="http://tuxdroid.ebmwebsourcing.com/"/>

The BPEL Designer should reference files by URL and not by file paths, as it is not supported in WSDL imports.
Comment 1 grid.qian CLA 2011-08-01 05:10:04 EDT
Hi Vincent,
For adding wsdl, in the wizard page, we can select wsdl by resource, file, url, wsil, four ways. I test it on my machine, it can work well as using file options to add wsdl file. 
Could you upload your wsdl files, let me test?

Thanks!
Grid
Comment 2 Vincent Zurczak CLA 2011-08-02 03:29:37 EDT
Created attachment 200689 [details]
A WSDL to test the file import.
Comment 3 Vincent Zurczak CLA 2011-08-02 03:30:00 EDT
Hi,

I added a WSDL from a file. The error on my side was just the import location which was not an URL. I can attach my WSDL if you want.

I had planned to fix this problem myself, but I did not find time for this (yet).
Comment 4 grid.qian CLA 2011-08-03 04:58:06 EDT
Ok, I will try to test, and leave the issue to you. Haha.
Comment 5 Vincent Zurczak CLA 2011-09-14 11:20:59 EDT
Confirmed on the last repo.
Comment 6 Vincent Zurczak CLA 2011-09-15 11:42:43 EDT
As a complement, the problem occurs when the WSDL cannot be localized relatively to the BPEL file (e.g. if the WSDL is picked up on other disk partition).

Fixed.