+ Start a Discussion

Importing the wsdl from webservice

I am trying to consume the webservice hosted on http://xx.x.x.xxx/sfdc/AccountService.svc .

When I am  parsing  the wsdl into SFDC. It gives me an error.. Error: Failed to parse wsdl: Parse error: Found invalid XML. processing instruction can not have PITarget with reserveld xml name (position: START_DOCUMENT seen \r\n

Please help me to fix this..

Appreciate any inputs.

Gaurav NirwalGaurav Nirwal
To import a WSDL file to your Web project, complete the following steps:

Select your project in the Java EE Navigator pane, and from the File menu, select Import.
Select General > File System and click Next.
Click Browse on the next page of the wizard to select the directories from which you would like to add the WSDL.
In the import selection panes, use the following methods to select exactly the resources you want to add:
Expand the hierarchies in the left pane and select or clear the checkboxes that represent the folders in the selected directory. Then in the right pane, select or clear check boxes for individual files.
Click Filter Types to filter the current selection for files of a specific type.
Click Select All to select all resources in the directory, then go through and deselect the ones that you do not want to add.
Click Deselect All to deselect all resources in the directory, then go through and choose individual resources to add.
Specify the Workbench project or folder that will be the import destination.
When you have finished specifying your import options, click Finish.