Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/391.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
Java 使用jax rpc SOAP消息处理程序更改SOAP消息中的命名空间_Java_Web Services_Jax Rpc - Fatal编程技术网

Java 使用jax rpc SOAP消息处理程序更改SOAP消息中的命名空间

Java 使用jax rpc SOAP消息处理程序更改SOAP消息中的命名空间,java,web-services,jax-rpc,Java,Web Services,Jax Rpc,我试图在jax-rpcsoap消息处理程序中使用saajapi修改soap请求中元素的名称空间 例如: <\s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <\s:Body> <\ns2:getAllGeneratedPasswords\>xmlns:ns2="http:/

我试图在jax-rpcsoap消息处理程序中使用saajapi修改soap请求中元素的名称空间

例如:

<\s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing"    xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">  
<\s:Body>
   <\ns2:getAllGeneratedPasswords\>xmlns:ns2="http://service.services.manufacturing.evse.inds.ge.com/">
          <\ps1:userType xmlns="ps1:http://sdsdf.asdasd">user<\/ps1:userType>
        <\/ns2:getAllGeneratedPasswords>
      <\/s:Body>
<\/s:Envelope>

你得到了什么样的例外1.我没有得到任何例外。只是我需要一种方法来更改处理程序中的名称空间
import javax.xml.rpc.handler.GenericHandler
import....
import...

public class ServiceHandler extends GenericHandler{

    public boolean handleRequest(SOAPMessageContext arg0) {
        //manipulate namespace here
    }
}