Cannot parse the WSDL file
-
Wednesday, May 25, 2011 10:29 AM
we hav downloaded the organization.wsdl from ms CRM 2011.While parsing this file to convert to java using Axis the following error appear on command prompt
Parsing XML file: Organization.wsdl
Retrieving document at 'http://<DomainName>/<OrganizationName>/XRMServices/2011/Organization.svc
?wsdl=wsdl0', relative to 'file:/E:/mscrm2011/Organization/Organization1/Organiz
ation.wsdl'.
java.io.IOException: ERROR: Missing <soap:fault> element inFault "OrganizationSe
rviceFaultFault" in operation "OrganizationServiceFaultFault", in binding CreateInside the Organization.wsdl there is one import Tag that is why the Retrieving document at 'http://............
All Replies
-
Wednesday, May 25, 2011 1:12 PMModerator
I think we need more information about what specificially you are trying to do or accomplish here. Usually most programs understand the wsdl import tag so when you point to the wsdl you just use 'http://<DomainName>/<OrganizationName>/XRMServices/2011/Organization.svc
?wsdl and don't use the wsdl0 part.
Jamie Miley
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter! -
Thursday, May 26, 2011 5:59 AM
Hi thanks Jamie Miley...But our problem is not yet solved.We people are concerned with java programming. we are usually connecting to CRMs using java code from client side by initiating the stub classes.By using Axis.jar and the class called WSDL2Java we will get the full java classes corresponding to the wsdl document.The code used for the conversion of organization.wsdl is as follows
java -classpath C:\java\axis-1_4\lib\axis.jar;C:\java\axis-1_4\lib\activation.jar;C:\java\axis-1_4\lib\mail.jar;C:\java\axis-1_4\lib\axis-ant.jar;C:\java\axis-1_4\lib\commons-discovery-0.2.jar;C:\java\axis-1_4\lib\commons-logging-1.0.4.jar;C:\java\axis-1_4\lib\jaxrpc.jar;C:\java\axis-1_4\lib\log4j-1.2.8.jar;C:\java\axis-1_4\lib\saaj.jar;C:\java\axis-1_4\lib\wsdl4j-1.5.1.jar org.apache.axis.wsdl.WSDL2Java -w -v -a -O -1 Organization.wsdl -o ./wsdljava
pause
In our earlier cases the java classes were formed in the wsdljava folder which is given as output folder(-o).But in this case the following error message appears on the command prompt
Parsing XML file: Organization.wsdl
Retrieving document at 'http://DomainName/organizationName/XRMServices/2011/Organization.svc
?wsdl=wsdl0', relative to 'file:/E:/mscrm2011/Organization/Organization1/Organiz
ation.wsdl'.
java.io.IOException: ERROR: Missing <soap:fault> element inFault "OrganizationSe
rviceFaultFault" in operation "OrganizationServiceFaultFault", in binding Create
at org.apache.axis.wsdl.symbolTable.SymbolTable.faultsFromSOAPFault(Symb
olTable.java:2858)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolT
able.java:2549)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:744)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:734)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543
)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:518)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)If you look into the Organization.wsdl you can see the import tag as below
<wsdl:import namespace="http://schemas.microsoft.com/xrm/2011/Contracts/Services" location="http://DomainName/OrganizationName/XRMServices/2011/Organization.svc?wsdl=wsdl0"/>
We hav saved the wsdl at
E:/mscrm2011/Organization/Organization1/Organiz
ation.wsdl'
How can I convert it?- Edited by SubinPalackal Thursday, May 26, 2011 9:43 AM
-
Thursday, May 26, 2011 6:07 AM
I hope you might have referenced the following code sample for connecting MS CRM using non .net client. If not, please have a look. It may help you to resolve this issue.
http://code.msdn.microsoft.com/CRM-Online-2011-WebServices-14913a16
Linkedin : http://in.linkedin.com/in/rammscrm/- Proposed As Answer by Jamie MileyMVP, Moderator Monday, April 15, 2013 5:17 PM
-
Friday, June 08, 2012 2:46 PMModeratorDid you get this resolved?
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter! -
Monday, April 15, 2013 5:17 PMModerator