WebService的问题, 使用自定义javabean,需要设置序列化器,请参考我们教程中的例子,你这个应该是axis14吧?我们的教程有点儿老了。http://www.family168.com/tutorial/axis14/html/axis14-ch-03.html 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 仅供参考http://doc.linuxpk.com/46250.html 不懂webservice 顶一下把。................ 你可以用对象序列化代替也可以对每个对象加一个toString方法,返回时用String就可以了 The AXIS engine could not find a target service to invoke! targetService is WebService 不像是你没序列化的问题,你把wsdl贴出来看看吧。 http://forums.sforce.com/sforce/board/message?board.id=VB_development&message.id=112 使用自定义javabean,需要设置序列化器, 请参考我们教程中的例子,你这个应该是axis14吧? 我们的教程有点儿老了。 http://www.family168.com/tutorial/axis14/html/axis14-ch-03.html我用的是created by Apache Axis version: 1.3 <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><!--WSDL created by Apache Axis version: 1.3Built on Oct 05, 2005 (05:23:37 EDT)--> <wsdl:types> <schema targetNamespace="http://DefaultNamespace" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="WFBean"> <sequence> <element name="actionResult" nillable="true" type="xsd:string"/> <element name="actionType" nillable="true" type="xsd:string"/> <element name="actionre" nillable="true" type="xsd:string"/> <element name="businessType" nillable="true" type="xsd:string"/> <element name="stateType" type="xsd:int"/> <element name="workflow_id" nillable="true" type="xsd:string"/> </sequence> </complexType> <complexType name="MsgBean"> <sequence> <element name="actionResult" type="xsd:boolean"/> <element name="code" nillable="true" type="xsd:string"/> <element name="msg" nillable="true" type="xsd:string"/> <element name="re" nillable="true" type="xsd:string"/> <element name="workflow_id" nillable="true" type="xsd:string"/> </sequence> </complexType> </schema> </wsdl:types> <wsdl:message name="getNameRequest"> <wsdl:part name="wfb" type="impl:WFBean"/> </wsdl:message> <wsdl:message name="getNameResponse"> <wsdl:part name="getNameReturn" type="impl:MsgBean"/> </wsdl:message> <wsdl:portType name="WebService"> <wsdl:operation name="getName" parameterOrder="wfb"> <wsdl:input message="impl:getNameRequest" name="getNameRequest"/> <wsdl:output message="impl:getNameResponse" name="getNameResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="WebServiceSoapBinding" type="impl:WebService"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getName"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getNameRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded"/> </wsdl:input> <wsdl:output name="getNameResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="WebServiceService"> <wsdl:port binding="impl:WebServiceSoapBinding" name="WebService"> <wsdlsoap:address location="http://localhost:28080/WebService/services/WebService"/> </wsdl:port> </wsdl:service></wsdl:definitions> 所谓的序列化是不是下面这个?? <complexType name="WFBean"> <sequence> <element name="actionResult" nillable="true" type="xsd:string"/> <element name="actionType" nillable="true" type="xsd:string"/> <element name="actionre" nillable="true" type="xsd:string"/> <element name="businessType" nillable="true" type="xsd:string"/> <element name="stateType" type="xsd:int"/> <element name="workflow_id" nillable="true" type="xsd:string"/> </sequence> </complexType> <complexType name="MsgBean"> <sequence> <element name="actionResult" type="xsd:boolean"/> <element name="code" nillable="true" type="xsd:string"/> <element name="msg" nillable="true" type="xsd:string"/> <element name="re" nillable="true" type="xsd:string"/> <element name="workflow_id" nillable="true" type="xsd:string"/> </sequence> </complexType> 参数尽量简单这种javabean的太复杂 可行是一定可行的 其实解决方法是有啊,可是为什么用bean就不行呢??? ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++力争成为中国最大的架构师群联盟,架构师1群:43545919已满,2群:59048426的招募也近尾声,现3群:17303696正式 开放,各群内容基本相同,高手也经过群主进行了调整,希望大家不必重复加入!培训经过筛选才会进行,请大家不必 着急!!!已经上传的顶级软件产品的架构分析,本群资料仅供研究学习,不得商用!!!google 、eBay、Youtube、淘宝等......技术文章包括:《自己动手写操作系统》《搜索引擎-原理、技术与系统》《企业应用架构模式》......重要的RUP实例设计模式精解......资料陆续上传中++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 死循环,轮询,异步,阻塞是怎么一会事啊! 看看我hql时间比较哪里有问题? ssh文件上传问题 关于hibernate 的saveOrUpdate的疑问? 关于tomcat6的comet技术 j2ee环境配置问题 !!!!!!!!!!!!!JSF中传递参数的问题!!!!!!!!!!!!!!!!!!! 求助怎么配置J2EE(不够再加) struts + mysql 国际化解决 ejb应该用什么来做比较快 我独立启动weblogic能用.可是在eclipse+myeclipse启动中提示license出错 ejb测试出现异常,请大家帮忙!
http://doc.linuxpk.com/46250.html
顶一下把。................
也可以对每个对象加一个toString方法,返回时用String就可以了
不像是你没序列化的问题,你把wsdl贴出来看看吧。
请参考我们教程中的例子,你这个应该是axis14吧?
我们的教程有点儿老了。 http://www.family168.com/tutorial/axis14/html/axis14-ch-03.html我用的是created by Apache Axis version: 1.3
<wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:types>
<schema targetNamespace="http://DefaultNamespace" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="WFBean">
<sequence>
<element name="actionResult" nillable="true" type="xsd:string"/>
<element name="actionType" nillable="true" type="xsd:string"/>
<element name="actionre" nillable="true" type="xsd:string"/>
<element name="businessType" nillable="true" type="xsd:string"/>
<element name="stateType" type="xsd:int"/>
<element name="workflow_id" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="MsgBean">
<sequence>
<element name="actionResult" type="xsd:boolean"/>
<element name="code" nillable="true" type="xsd:string"/>
<element name="msg" nillable="true" type="xsd:string"/>
<element name="re" nillable="true" type="xsd:string"/>
<element name="workflow_id" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</wsdl:types> <wsdl:message name="getNameRequest"> <wsdl:part name="wfb" type="impl:WFBean"/> </wsdl:message> <wsdl:message name="getNameResponse"> <wsdl:part name="getNameReturn" type="impl:MsgBean"/> </wsdl:message> <wsdl:portType name="WebService"> <wsdl:operation name="getName" parameterOrder="wfb"> <wsdl:input message="impl:getNameRequest" name="getNameRequest"/> <wsdl:output message="impl:getNameResponse" name="getNameResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="WebServiceSoapBinding" type="impl:WebService"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getName"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getNameRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded"/> </wsdl:input> <wsdl:output name="getNameResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="WebServiceService"> <wsdl:port binding="impl:WebServiceSoapBinding" name="WebService"> <wsdlsoap:address location="http://localhost:28080/WebService/services/WebService"/> </wsdl:port> </wsdl:service></wsdl:definitions>
<sequence>
<element name="actionResult" nillable="true" type="xsd:string"/>
<element name="actionType" nillable="true" type="xsd:string"/>
<element name="actionre" nillable="true" type="xsd:string"/>
<element name="businessType" nillable="true" type="xsd:string"/>
<element name="stateType" type="xsd:int"/>
<element name="workflow_id" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="MsgBean">
<sequence>
<element name="actionResult" type="xsd:boolean"/>
<element name="code" nillable="true" type="xsd:string"/>
<element name="msg" nillable="true" type="xsd:string"/>
<element name="re" nillable="true" type="xsd:string"/>
<element name="workflow_id" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
其实解决方法是有啊,可是为什么用bean就不行呢???
现3群:17303696正式 开放,各群内容基本相同,高手也经过群主进行了调整,希望大家不必重复加入!
培训经过筛选才会进行,请大家不必 着急!!!已经上传的顶级软件产品的架构分析,本群资料仅供研究学习,不得商用!!!
google 、
eBay、
Youtube、
淘宝等
......
技术文章包括:
《自己动手写操作系统》
《搜索引擎-原理、技术与系统》
《企业应用架构模式》
......
重要的RUP实例
设计模式精解
......
资料陆续上传中++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++