[
https://issues.apache.org/jira/browse/AXIS2-4250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maria Claribelle Loto updated AXIS2-4250:
-----------------------------------------
Description:
Hi all,
I have generated classes using wsdl2java tool but i am getting error in the
generated skeleton class. It says that Class org.apache.xmlbeans.SchemaType not
public or does not allow instantiation in the method signature part.
Any idea how i can resolve the error? thanks a lot in advance
was:
Hi all,
I have generated classes using wsdl2java tool but i am getting error in the
generated skeleton class. It says that Class org.apache.xmlbeans.SchemaType not
public or does not allow instantiation in the method signature part. Below is
the generated Skeleton Class:
/**
* Axis2MarketInterfaceSkeleton.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.2 Apr 27, 2007 (04:14:19 IST)
*/
package net.brokerhub.xml.webservices;
/**
* Axis2MarketInterfaceSkeleton java skeleton for the axisService
*/
public class Axis2MarketInterfaceSkeleton{
/**
* Auto generated method signature
* @param getMarketDataRequest
*/
public net.brokerhub.xml.otcxml.OTCxmlDocument getMarketData
(
net.brokerhub.xml.webservices.GetMarketDataRequestDocument
getMarketDataRequest
)
throws InvalidServerDataException{
//Todo fill this with the necessary business logic
throw new java.lang.UnsupportedOperationException("Please
implement " + this.getClass().getName() + "#getMarketData");
}
}
here is my wdl file:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
name="Axis2MarketInterface"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
targetNamespace="http://xml.brokerhub.net/webservices/"
xmlns:impl="http://xml.brokerhub.net/webservices/"
xmlns:intf="http://xml.brokerhub.net/webservices/"
xmlns:bhml="http://xml.brokerhub.net/bhml/"
xmlns:otcxml="http://xml.brokerhub.net/otcxml/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsv="http://xml.brokerhub.net/webservices/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- import uses relative paths. this way we dont have to hardcode
the location of schemas which helps while developing new versions -->
<wsdl:import
location="webservices.xsd"
namespace="http://xml.brokerhub.net/webservices/"/>
<!--
<wsdl:import
location="bhml_1.0.xsd"
namespace="http://xml.brokerhub.net/bhml/"/>
<wsdl:import
location="otcxml_1.1.xsd"
namespace="http://xml.brokerhub.net/otcxml/"/>-->
<wsdl:types></wsdl:types>
<wsdl:message name="getMarketDataRequest">
<wsdl:part element="wsv:getMarketDataRequest"
name="getMarketDataRequest"/>
</wsdl:message>
<wsdl:message name="invalidServerData">
<wsdl:part element="wsv:message" name="errorMessage"/>
</wsdl:message>
<wsdl:message name="getMarketDataResponse">
<wsdl:part element="otcxml:OTCxml" name="getMarketDataResponse"/>
</wsdl:message>
<wsdl:portType name="Axis2MarketInterfacePortType">
<wsdl:operation name="getMarketData">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Requesting market data requires a
valid
login. Supply the sessionId received from the login with the
Market request:</wsdl:documentation>
<wsdl:input message="wsv:getMarketDataRequest"/>
<wsdl:output message="wsv:getMarketDataResponse"/>
<wsdl:fault message="wsv:invalidServerData"
name="invalidServerData"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="Axis2MarketInterfaceBinding"
type="impl:Axis2MarketInterfacePortType">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getMarketData">
<wsdlsoap:operation
soapAction="capeconnect:Axis2MarketInterface:Axis2MarketInterfacePortType#getMarketData"/>
<wsdl:input>
<wsdlsoap:body parts="getMarketDataRequest" use="literal"/>
</wsdl:input>
<wsdl:output>
<wsdlsoap:body parts="getMarketDataResponse" use="literal"/>
</wsdl:output>
<wsdl:fault name="invalidServerData">
<wsdlsoap:fault name="invalidServerData" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Axis2MarketInterface">
<wsdl:port binding="impl:Axis2MarketInterfaceBinding"
name="Axis2MarketInterface">
<wsdlsoap:address
location="http://localhost:8080/axis2/services/Axis2MarketInterface"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Any idea how i can resolve the error? thanks a lot in advance
> Error in Skeleton Class: Web Service Method Problem - Class
> org.apache.xmlbeans.SchemaType not public or does not allow instantiation
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4250
> URL: https://issues.apache.org/jira/browse/AXIS2-4250
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: Intellij IDEA, Java, Resin, Windows XP
> Reporter: Maria Claribelle Loto
>
> Hi all,
> I have generated classes using wsdl2java tool but i am getting error in the
> generated skeleton class. It says that Class org.apache.xmlbeans.SchemaType
> not public or does not allow instantiation in the method signature part.
> Any idea how i can resolve the error? thanks a lot in advance
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.