Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350540 - Error when defining a port type from a WSDL file
Summary: Error when defining a port type from a WSDL file
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BPEL (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Vincent Zurczak CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-28 05:51 EDT by Vincent Zurczak CLA
Modified: 2022-10-03 11:11 EDT (History)
2 users (show)

See Also:


Attachments
A WSDL to test the file import. (12.82 KB, application/octet-stream)
2011-08-02 03:29 EDT, Vincent Zurczak CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.