Xsd Siebel头的模式

Xsd Siebel头的模式,xsd,jdeveloper,bpel,soapheader,siebel,Xsd,Jdeveloper,Bpel,Soapheader,Siebel,以上几行作为XML片段输入JDeveloper中的BPEL流程。问题:如何设计合适的模式来获取Siebel头的用户名和密码以调用Siebel服务? 这是打开WSSOAP选项时请求siebel web服务的一个示例: <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"> <wsse:UsernameToken xmlns:wsu="http://schemas.xmlso

以上几行作为XML片段输入JDeveloper中的BPEL流程。问题:如何设计合适的模式来获取Siebel头的用户名和密码以调用Siebel服务?

这是打开WSSOAP选项时请求siebel web服务的一个示例:

<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">
        <wsse:UsernameToken xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
          <wsse:Username>Username</wsse:Username>
          <wsse:Password Type="wsse:PasswordText">Password</wsse:Password>
        </wsse:UsernameToken>
    </wsse:Security>
如果没有WSSOAP选项,您将不得不以Siebel端配置的匿名用户的身份调用它,或者在URL中输入用户名和密码。
在这里您可以找到更多信息Siebel Bookshelf:

后续:我添加了一个新的.xsd文件,其中有一个元素:序列是Username,密码是字符串类型。我在BPEL流程中使用“assign”操作分配了相应的字符串,并在invoke操作中将现有的头变量替换为新元素类型的新变量。建造成功了。但是,invoke操作在测试期间出错。 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header> <ns:UsernameToken xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="http://siebel.com/webservices" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">User name goes here</ns:UsernameToken> <ns:PasswordText xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="http://siebel.com/webservices" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">Password goes here</ns:PasswordText> <ns:SessionType xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="http://siebel.com/webservices" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">Session type goes here</ns:SessionType> <ns:SessionToken xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="http://siebel.com/webservices" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">Session token goes here</ns:SessionToken> </SOAP-ENV:Header> <SOAP-ENV:Body> </SOAP-ENV:Body> </SOAP-ENV:Envelope>