[jboss-user] [JBossWS] - BUG: WSDL generate wrong java file when service port name co
ppgogo
do-not-reply at jboss.com
Thu Nov 23 03:44:38 EST 2006
the wsdl file is like below, it has a port named "SoapPortTypePort"
anonymous wrote : <?xml version="1.0" encoding="UTF-8"?>
| <definitions name="MainIM_ServiceProxy" targetNamespace="http://ws.ydeng.com" xmlns:tns="http://ws.ydeng.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
|
| <soap:operation soapAction=""/>
|
| <soap:body use="literal" namespace="http://ws.ydeng.com"/>
|
|
| <soap:body use="literal" namespace="http://ws.ydeng.com"/>
|
|
|
|
|
| <soap:address location="http://localhost/WebService-ejb/MainIM_ServiceProxyBean"/>
|
|
|
use the wstools to generate the java files, then it will generate 2 files:
Soap.java (it should be SoapPortType.java)
MainIM_ServiceProxy.java
But in the MainIM_ServiceProxy, it generate the right type name.
see the java code below:
package com.ydeng.ws;
|
|
| import javax.xml.rpc.*;
|
|
| public interface MainIM_ServiceProxy extends javax.xml.rpc.Service
| {
|
| public com.ydeng.ws.SoapPortType getSoapPortTypePort() throws ServiceException;
|
| }
|
package com.ydeng.ws;
| public interface Soap extends java.rmi.Remote
| {
|
| public int getCount(java.lang.String string_1) throws java.rmi.RemoteException;
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988079#3988079
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988079
More information about the jboss-user
mailing list