Cannot parse the WSDL file
-
mercoledì 25 maggio 2011 10:29
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://............
Tutte le risposte
-
mercoledì 25 maggio 2011 13:12Moderatore
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! -
giovedì 26 maggio 2011 05:59
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?- Modificato SubinPalackal giovedì 26 maggio 2011 09:43
-
giovedì 26 maggio 2011 06:07
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/- Proposto come risposta Jamie MileyMVP, Moderator lunedì 15 aprile 2013 17:17
-
venerdì 8 giugno 2012 14:46ModeratoreDid you get this resolved?
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter! -
lunedì 15 aprile 2013 17:17Moderatore