Hi,
This wsdl gives us the common data types for operations and fault
types...,
<?xml version="1.0" encoding="UTF-8"?>
<project default="JB_Default_Task">
<taskdef name="java2wsdl"
classname="org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask"/>
<taskdef name="wsdl2java"
classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"/>
<property name="baseDir"
value="/home/serkans/jbproject/ParlayxCommon"/>
<target name="JB_Default_Task">
<wsdl2java
all="true"
debug="false"
helperGen="false"
noimports="false"
output="${baseDir}/java/src"
serverside="true"
skeletonDeploy="true"
testcase="true"
timeout="0"
typeMappingVersion="1.1"
url="file://${baseDir}/wsdl/parlayx_common_faults_2_0.wsdl"
verbose="false"
noWrapped="false"
>
<mapping
namespace="http://www.csapi.org/schema/parlayx/common/v2_1"
package="com.mycompany.util.parlayx.common.v2_1"/>
</wsdl2java>
</target>
</project>
This was working..
After reading the AXIS2 pojo guide I see that I must use data types as
POJO...
The other wsdls (which are defining a web service has bindings and port
types) will give me that data types if I generate code with wsdl2java
Thanks everybody..
________________________________
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 8:32 PM
To: [email protected]
Subject: Re: WSDL2JAVA ERROR- No bindings found in wsdl
The Parley WSDL only defines messages. It does not define portTypes or
bindings. WSDL2Java cannot generate code from this WSDL (neither Axis
1.x or Axis2 can do so).
If you were able to generate code using Axis 1.x , then you must have
had another WSDL that imported the Parley WSDL.
Anne
On 4/9/07, Serkan Sunel < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
Hi,
That wsdl is working with old version of axis...
I am able to generate java code with old version of axis (1.3)...
We are implementing telco related operations with that...
That wsdl is a standart in telecommication industry..
It comes from http://www.parlay.org/en/specifications/pxws.asp
Anybody can help about this ?
Must I define that types specified in xsds as pojo ?
________________________________
From: Krishnamoorthy J (HCL Financial Services)
[mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 3:22 PM
To: [email protected]
Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl
This is the wsdl in the attachment which has only messages defined. Even
with the Axis 1.x this will not work.
<?xml version="1.0" encoding="UTF-8"?>
<!-- January 5, 2006 -->
<wsdl:definitions
name="common_faults"
targetNamespace="
http://www.csapi.org/wsdl/parlayx/common/v2_0/faults
<http://www.csapi.org/wsdl/parlayx/common/v2_0/faults> "
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:parlayx_common_xsd="http://www.csapi.org/schema/parlayx/common/v2_
1">
<wsdl:types>
<xsd:schema elementFormDefault="qualified">
<xsd:import
namespace="http://www.csapi.org/schema/parlayx/common/v2_1"
schemaLocation="parlayx_common_types_2_1.xsd"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="ServiceException">
<wsdl:part name="ServiceException"
element="parlayx_common_xsd:ServiceException"/>
</wsdl:message>
<wsdl:message name="PolicyException">
<wsdl:part name="PolicyException"
element="parlayx_common_xsd:PolicyException"/>
</wsdl:message>
</wsdl:definitions>
________________________________
From: Serkan Sunel [mailto:]
Sent: Monday, April 09, 2007 5:49 PM
To: [email protected]
Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl
Hi,
I have been using this wsdl with old version of AXIS ..
I was able to generate java code with axis 1.X
Project was working old axis ..
I only wanted to upgr my dependency..
You sure that wsdl is wrong ?
________________________________
From: Krishnamoorthy J (HCL Financial Services)
[mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 3:09 PM
To: [email protected]
Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl
Your WSDL is not complete.
Check this tutorial http://www.w3schools.com/wsdl/default.asp
________________________________
From: Serkan Sunel [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 4:15 PM
To: [email protected]
Subject: WSDL2JAVA ERROR- No bindings found in wsdl
Hi all,
I am a newbie for axis2
Can you tell me how can I generate java code for the wsdl and XSD files
(attached)..
I am gettimg the following errors..
[EMAIL PROTECTED] wsdl] java org.apache.axis2.wsdl.WSDL2Code -uri
parlayx_common_faults_2_0.wsdl --serverside-interface
Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to
'file:/home/serkans/products/utilities/current/utilities/parlayx/wsdl/'.
log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.WSDL11ToAxisServiceBuilder).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:112)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl; nested
exception is:
org.apache.axis2.AxisFault: No bindings found in wsdl
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:250)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:103)
... 1 more
Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL
11ToAxisServiceBuilder.java:377)
at org.apache.axis2
Thanks..
Serkan SUNEL
DISCLAIMER:
------------------------------------------------------------------------
-----------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily
reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.
------------------------------------------------------------------------
-----------------------------------------------