You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Marco Schimmelpfennig <ma...@stormbind.net> on 2006/11/07 11:01:16 UTC
[Axis] Problems with WSDL2Java creation process
Hi,
I tried to use the WSDL2Java Tool to create Java Code from a Microsoft
CRM 3.0 WSDL. This generates following error that don't helps me much
because I use a local version of the wsdl file:
WSDL2Java.bat crmservice.wsdl
java.io.IOException: WSDL2Java emitter timed out (this often means the
WSDL at the specified URL is inaccessible)!
at org.apache.axis.wsdl.gen.Parser.run(Parser.java:320)
at org.apache.axis.wsdl.toJava.Emitter.run(Emitter.java:599)
at org.apache.axis.wsdl.gen.WSDL2.run(WSDL2.java:343)
at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:373)
My .bat file looks like following and simply provides the bindings that
are needed to use the WSDL2Java Tool. The only special thing in here
that I'm trying to use the jvm that is provided by Lotus Domino/Notes 7.02:
@echo OFF
rem *******************************************************
rem *** WSDL2Java.bat ****
rem *******************************************************
set AXISPATH=C:\axis-1_4\lib
set JAVAPATH=C:\Programme\Java\jre1.5.0_06
set DOMINOJAVAPATH=C:\Lotus\Notes7\Prg\jvm\lib\ext
set CP=%AXISPATH%\axis.jar
set CP=%CP%;%AXISPATH%\commons-logging-1.0.4.jar
set CP=%CP%;%AXISPATH%\commons-discovery-0.2.jar
set CP=%CP%;%AXISPATH%\jaxrpc.jar
set CP=%CP%;%AXISPATH%\saaj.jar
set CP=%CP%;%DOMINOJAVAPATH%\mail.jar
set CP=%CP%;%DOMINOJAVAPATH%\activation.jar
set CP=%CP%;%AXISPATH%\wsdl4j-1.5.1.jar
%JAVAPATH%\bin\java -cp %CP% org.apache.axis.wsdl.WSDL2Java %1
Should this make a problem, better to use a normal jvm for creation and
just switch to the Domino/Notes one where the code should run later on?
Or could it be that something in this wsdl file makes problems or isn't
compatible with Axis 1.4:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:s1="http://microsoft.com/wsdl/types/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s3="http://schemas.microsoft.com/crm/2006/Query"
xmlns:s2="http://schemas.microsoft.com/crm/2006/CoreTypes"
xmlns:s4="http://schemas.microsoft.com/crm/2006/Scheduling"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://schemas.microsoft.com/crm/2006/WebServices"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://schemas.microsoft.com/crm/2006/WebServices"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
If you need more of the wsdl file to tell if there could be
incompatibilities with Axis 1.4 please tell me. If there is a problem
with that could I get this to work with Axis2?
Greets & Thanks in advance for your help and suggestions,
Marco Schimmelpfennig
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis] Problems with WSDL2Java creation process
Posted by Marco Schimmelpfennig <ma...@stormbind.net>.
Deepal Jayasinghe wrote:
> Can you please create JIRA attaching the wsdl.
Hi again,
I just found the reason. I had to set the timeout of the WSDL2Java
process with the parameter --timeout to "-1" because of the length of
the wsdl file.
Thanks for looking at my problem,
Marco
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis] Problems with WSDL2Java creation process
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Marco ;
Can you please create JIRA attaching the wsdl.
Thanks
Deepal
>
>I tried to use the WSDL2Java Tool to create Java Code from a Microsoft
>CRM 3.0 WSDL. This generates following error that don't helps me much
>because I use a local version of the wsdl file:
>
>WSDL2Java.bat crmservice.wsdl
>java.io.IOException: WSDL2Java emitter timed out (this often means the
>WSDL at the specified URL is inaccessible)!
>at org.apache.axis.wsdl.gen.Parser.run(Parser.java:320)
>at org.apache.axis.wsdl.toJava.Emitter.run(Emitter.java:599)
>at org.apache.axis.wsdl.gen.WSDL2.run(WSDL2.java:343)
>at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:373)
>
>My .bat file looks like following and simply provides the bindings that
>are needed to use the WSDL2Java Tool. The only special thing in here
>that I'm trying to use the jvm that is provided by Lotus Domino/Notes 7.02:
>
>@echo OFF
>rem *******************************************************
>rem *** WSDL2Java.bat ****
>rem *******************************************************
>set AXISPATH=C:\axis-1_4\lib
>set JAVAPATH=C:\Programme\Java\jre1.5.0_06
>set DOMINOJAVAPATH=C:\Lotus\Notes7\Prg\jvm\lib\ext
>set CP=%AXISPATH%\axis.jar
>set CP=%CP%;%AXISPATH%\commons-logging-1.0.4.jar
>set CP=%CP%;%AXISPATH%\commons-discovery-0.2.jar
>set CP=%CP%;%AXISPATH%\jaxrpc.jar
>set CP=%CP%;%AXISPATH%\saaj.jar
>set CP=%CP%;%DOMINOJAVAPATH%\mail.jar
>set CP=%CP%;%DOMINOJAVAPATH%\activation.jar
>set CP=%CP%;%AXISPATH%\wsdl4j-1.5.1.jar
>%JAVAPATH%\bin\java -cp %CP% org.apache.axis.wsdl.WSDL2Java %1
>
>Should this make a problem, better to use a normal jvm for creation and
>just switch to the Domino/Notes one where the code should run later on?
>
>Or could it be that something in this wsdl file makes problems or isn't
>compatible with Axis 1.4:
>
><?xml version="1.0" encoding="UTF-8"?>
><wsdl:definitions xmlns:s1="http://microsoft.com/wsdl/types/"
>xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
>xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>xmlns:s="http://www.w3.org/2001/XMLSchema"
>xmlns:s3="http://schemas.microsoft.com/crm/2006/Query"
>xmlns:s2="http://schemas.microsoft.com/crm/2006/CoreTypes"
>xmlns:s4="http://schemas.microsoft.com/crm/2006/Scheduling"
>xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>xmlns:tns="http://schemas.microsoft.com/crm/2006/WebServices"
>xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
>xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
>targetNamespace="http://schemas.microsoft.com/crm/2006/WebServices"
>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>
>If you need more of the wsdl file to tell if there could be
>incompatibilities with Axis 1.4 please tell me. If there is a problem
>with that could I get this to work with Axis2?
>
>
>Greets & Thanks in advance for your help and suggestions,
>
>Marco Schimmelpfennig
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org