Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Soap netbeans使用WSDL生成的web服务,返回方法_Soap_Netbeans_Service_Response - Fatal编程技术网

Soap netbeans使用WSDL生成的web服务,返回方法

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

我对web服务非常陌生,我开始从事一个小项目,我需要开发一些web服务,我向mysql db发送请求以检索一些记录,现在我已经完成了大部分工作,这意味着我能够通过netbeans使用WSDL生成web服务,并连接到数据库并检索记录唯一的问题是soap响应不是我想要的格式:

<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