webService 实战篇--客户端调用,java动态代理面试题

本文介绍了如何使用Java调用WebService,并通过IDEA解析WSDL。详细讲解了请求参数的拼接和XML转JSON的过程,以便将XML格式的数据适配为前端友好的JSON格式。内容包括安装IDEA的webservice插件,创建服务代理,以及使用Fastjson和Dom4j进行XML转换。
摘要由CSDN通过智能技术生成
<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions targetNamespace=“http://ws.gxlu.com.cn”

xmlns:apachesoap=“http://xml.apache.org/xml-soap”

xmlns:impl=“http://ws.gxlu.com.cn”

xmlns:intf=“http://ws.gxlu.com.cn”

xmlns:wsdl=“http://schemas.xmlsoap.org/wsdl/”

xmlns:wsdlsoap=“http://schemas.xmlsoap.org/wsdl/soap/”

xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>

wsdl:types

<schema elementFormDefault=“qualified” targetNamespace=“http://ws.gxlu.com.cn”

xmlns=“http://www.w3.org/2001/XMLSchema”>

</wsdl:types>

<wsdl:message name=“getGridResourceResponse”>

<wsdl:part element=“impl:getGridResourceResponse” name=“parameters”></wsdl:part>

</wsdl:message>

<wsdl:message name=“getGridResourceRequest”>

<wsdl:part element=“impl:getGridResource” name=“parameters”></wsdl:part>

</wsdl:message>

<wsdl:portType name=“GridWebService”>

<wsdl:operation name=“getGridResource”>

<wsdl:input message=“impl:getGridResourceRequest” name=“getGridResourceRequest”></wsdl:input>

<wsdl:output message=“impl:getGridResourceResponse” name=“getGridResourceResponse”></wsdl:output>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name=“GridWebServiceSoapBinding” type=“impl:GridWebService”>

<wsdlsoap:binding style=“document” transport=“http://schemas.xmlsoap.org/soap/http”/>

<wsdl:operation n

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值