Soap netbeans使用WSDL生成的web服务,返回方法
我对web服务非常陌生,我开始从事一个小项目,我需要开发一些web服务,我向mysql db发送请求以检索一些记录,现在我已经完成了大部分工作,这意味着我能够通过netbeans使用WSDL生成web服务,并连接到数据库并检索记录唯一的问题是soap响应不是我想要的格式:Soap netbeans使用WSDL生成的web服务,返回方法,soap,netbeans,service,response,Soap,Netbeans,Service,Response,我对web服务非常陌生,我开始从事一个小项目,我需要开发一些web服务,我向mysql db发送请求以检索一些记录,现在我已经完成了大部分工作,这意味着我能够通过netbeans使用WSDL生成web服务,并连接到数据库并检索记录唯一的问题是soap响应不是我想要的格式: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:topScorerR
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:topScorerResponse xmlns:ns2="http://www..co/">
<playersName>John Doe</playersName>
<playersName>John Doe</playersName>
<playersName>John Doe</playersName>
<teamName>Fulham</teamName>
<teamName>Liverpool</teamName>
<teamName>Arsenal</teamName>
<goals>10</goals>
<goals>20</goals>
<goals>11</goals>
</ns2:topScorerResponse>
</S:Body>
</S:Envelope>
无名氏
无名氏
无名氏
富勒姆
利物浦
武器
10
20
11
但我正在寻找类似的东西:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<S:Body>
<ns2:topScorerResponse xmlns:ns2="http://www..co/">
<playersName>John Doe</playersName>
<teamName>Liverpool</>
<goals>10</>
</ns2:topScorerResponse>
<ns2:topScorerResponse xmlns:ns2="http://www..co/">
<playersName>John Doe</playersName>
<teamName>Fulham</>
<goals>11</goals>
</ns2:topScorerResponse>
</S:Body>
</S:Envelope>
无名氏
利物浦
10
无名氏
富勒姆
11