锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV无码乱码精品国产,亚洲av无码片vr一区二区三区,中文字幕亚洲日韩无线码http://www.tkk7.com/robin/category/6613.htmlzh-cnTue, 27 Feb 2007 20:36:45 GMTTue, 27 Feb 2007 20:36:45 GMT60 JavaScript璋冪敤Web servicehttp://www.tkk7.com/robin/archive/2006/01/05/26773.html浜虹敓鏄敱鍥炲繂緇勬垚鐨?/dc:creator>浜虹敓鏄敱鍥炲繂緇勬垚鐨?/author>Thu, 05 Jan 2006 12:01:00 GMThttp://www.tkk7.com/robin/archive/2006/01/05/26773.htmlhttp://www.tkk7.com/robin/comments/26773.htmlhttp://www.tkk7.com/robin/archive/2006/01/05/26773.html#Feedback0http://www.tkk7.com/robin/comments/commentRss/26773.htmlhttp://www.tkk7.com/robin/services/trackbacks/26773.html瑕佽皟鐢ㄧ殑Web鏈嶅姟鏄眰涓や釜鏁存暟鍜岋紝騫惰繑鍥炵粨鏋溿?BR>
鏈嶅姟鐨刉SDL鏂囦歡鍐呭濡備笅錛?BR>
<?xml version="1.0" encoding="utf-8" ?> 
<wsdl:definitions
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema" 
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
    xmlns:tns="http://tempuri.org/"  
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" 
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
    targetNamespace="http://tempuri.org/" 
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
     <s:schema elementFormDefault="qualified"  
        targetNamespace="http://tempuri.org/">
        <s:element name="AddTwoIntegers">
            <s:complexType>
               <s:sequence>  
                  <s:elementminOccurs="1" maxOccurs="1" name="IntegerOne" type="s:int" />    
                  <s:elementminOccurs="1" maxOccurs="1" name="IntegerTwo" type="s:int" />   
               </s:sequence>
            </s:complexType>
        </s:element>
        <s:element name="AddTwoIntegersResponse">
            <s:complexType>
                <s:sequence> 
                   <s:elementminOccurs="1" maxOccurs="1" name="AddTwoIntegersResult" type="s:int" />    
                </s:sequence>
            </s:complexType>
        </s:element>
     </s:schema>
  </wsdl:types>
  <wsdl:message name="AddTwoIntegersSoapIn"> 
      <wsdl:part name="parameters" element="tns:AddTwoIntegers" />
  </wsdl:message>
  <wsdl:message name="AddTwoIntegersSoapOut">  
      <wsdl:part name="parameters" element="tns:AddTwoIntegersResponse" />   
   </wsdl:message>
   <wsdl:portType name="SimpleServiceSoap">
       <wsdl:operation name="AddTwoIntegers">
          <wsdl:input message="tns:AddTwoIntegersSoapIn" />
          <wsdl:output message="tns:AddTwoIntegersSoapOut" />    
       </wsdl:operation> 
   </wsdl:portType>

   <wsdl:binding name="SimpleServiceSoap" type="tns:SimpleServiceSoap"> 
       <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> 
       <wsdl:operation name="AddTwoIntegers">   
           <soap:operation soapAction="http://tempuri.org/AddTwoIntegers" style="document" /> 
           <wsdl:input>  
               <soap:body use="literal" />    
           </wsdl:input>
           <wsdl:output>  
               <soap:body use="literal" />    
           </wsdl:output>
       </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="SimpleService"> 
      <documentation xmlns="http://schemas.xmlsoap.org/wsdl/" /> 
      <wsdl:port name="SimpleServiceSoap" binding="tns:SimpleServiceSoap">  
          <soap:address location="http://localhost/Develop.NET/Home.Develop.WebServices/SimpleService.asmx"/>  
      </wsdl:port>  
  </wsdl:service> 
</wsdl:definitions>


javaScript浠g爜涓埄鐢ㄤ簡MS鐨凥TTP浠g悊瀵硅薄XMLHTTP,鍦∕ozilla's Web brower涓浉搴旂殑緇勪歡鏄疿MLHttpRequest,浠栦滑閮芥彁渚涗簡綾諱技鐨勬柟娉曟潵瀹屾垚soap璇鋒眰銆備笅闈㈢殑浠g爜鐢ㄧ殑鏄疘E涓殑XMLHTTP瀵硅薄銆備唬鐮佸亣瀹氳皟鐢ㄨ繃紼嬩腑娌℃湁Fault銆?BR>
function fncAddTwoIntegers(a, b)
{    
    var oXmlHttp = new ActiveXObject("MSXML2.XMLHTTP");      
    oXmlHttp.open("POST", "http://localhost/Develop.NET/Home.Develop.WebServices/SimpleService.asmx'", false);
    oXmlHttp.setRequestHeader("Content-Type", "text/xml");    
    oXmlHttp.setRequestHeader("SOAPAction", "http://tempuri.org/AddTwoIntegers");

    oXmlHttp.send("      
<soap:Envelopexmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
<soap:Body> <AddTwoIntegersxmlns='http://tempuri.org/'> <IntegerOne>" + a + "</IntegerOne> <IntegerTwo>" + b + "</IntegerTwo> </AddTwoIntegers>
</soap:Body> </soap:Envelope>"); return oXmlHttp.responseXML.selectSingleNode("http://AddTwoIntegersResult").text; }


鍘熸枃鑻辨枃鍑鴻嚜錛?A target=_blank>http://builder.com.com/5100-6371_14-5887775.html?tag=nl.e601

]]>
鐢―ocument/literal鏂瑰紡璋冪敤web servicehttp://www.tkk7.com/robin/archive/2006/01/02/26385.html浜虹敓鏄敱鍥炲繂緇勬垚鐨?/dc:creator>浜虹敓鏄敱鍥炲繂緇勬垚鐨?/author>Mon, 02 Jan 2006 14:09:00 GMThttp://www.tkk7.com/robin/archive/2006/01/02/26385.htmlhttp://www.tkk7.com/robin/comments/26385.htmlhttp://www.tkk7.com/robin/archive/2006/01/02/26385.html#Feedback2http://www.tkk7.com/robin/comments/commentRss/26385.htmlhttp://www.tkk7.com/robin/services/trackbacks/26385.htmlDocument鏂瑰紡鏄疻eb service緙虹渷璋冪敤妯″紡錛屽拰literal鐩哥粍鍚堬紝緇欐垜浠皟鐢╓eb service鎻愪緵浜嗘瀬澶х殑渚垮埄錛岀渷鍘諱簡RPC璋冪敤鏂瑰紡鐨勫鏉傜被鍨嬪簭鍒楀寲鐨勯棶棰橈紝鎵浠ワ紝Doucment璋冪敤鏂瑰紡鍦˙PEL棰嗗煙搴旂敤闈炲父騫挎硾錛屼笅闈粙緇嶅熀浜嶢xis鍒╃敤Document鏂瑰紡鏉ヨ皟鐢ㄤ竴涓猈eb service.

1. Web service鍑嗗錛?BR>Web service浣犲彲浠ヤ換鎰忓疄鐜頒竴涓紝鎴戞槸鍒╃敤Oracle BPEL,閫氳繃寤虹珛涓涓狟PEL嫻佺▼錛岀劧鍚庢妸瀹冨彂甯冧負Web service(鍏蜂綋鍒涘緩榪囩▼鐪佺暐錛夛紝榪欓噷閲嶈鐨勬槸Web service鐨刉SDL鏂囦歡錛岃繖鏄垜浠皟鐢ㄧ殑闂ㄦ埛銆?BR>涓嬮潰鏄垜鐨刉eb service鐨刉SDL鏂囦歡鍐呭錛?BR>
<definitions
     name="HelloWorld"
     targetNamespace="http://xmlns.oracle.com/HelloWorld"
     xmlns="http://schemas.xmlsoap.org/wsdl/"
     xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
     xmlns:client="http://xmlns.oracle.com/HelloWorld"
    >
    <types>
        <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/HelloWorld"
             xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="HelloWorldProcessRequest">
                <complexType>
                    <sequence>
                        <element name="input" type="string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="HelloWorldProcessResponse">
                <complexType>
                    <sequence>
                        <element name="result" type="string"/>
                    </sequence>
                </complexType>
            </element>
        </schema>
    </types>
    <message name="HelloWorldRequestMessage">
        <part name="payload" element="client:HelloWorldProcessRequest"/>
    </message>
    <message name="HelloWorldResponseMessage">
        <part name="payload" element="client:HelloWorldProcessResponse"/>
    </message>
    <portType name="HelloWorld">
        <operation name="process">
            <input message="client:HelloWorldRequestMessage"/>
            <output message="client:HelloWorldResponseMessage"/>
        </operation>
    </portType>
    <binding name="HelloWorldBinding" type="client:HelloWorld">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="process">
            <soap:operation style="document" soapAction="process"/>
            <input>
                <soap:body use="literal"/>
            </input>
            <output>
                <soap:body use="literal"/>
            </output>
        </operation>
    </binding>
    <service name="HelloWorld">
        <port name="HelloWorldPort" binding="client:HelloWorldBinding">
            <soap:address location="http://robin:9700/orabpel/default/HelloWorld/1.0"/>
        </port>
    </service>
  <plnk:partnerLinkType name="HelloWorld">
    <plnk:role name="HelloWorldProvider">
      <plnk:portType name="client:HelloWorld"/>
    </plnk:role>
  </plnk:partnerLinkType>

</definitions>


2. 緙栧啓璋冪敤綾?浠g爜濡備笅錛?BR>
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import java.util.Vector;

import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.rpc.ServiceException;

import org.apache.axis.client.Call;
import org.apache.axis.constants.Style;
import org.apache.axis.message.SOAPBodyElement;
import org.apache.xml.serialize.DOMSerializerImpl;
import org.apache.xml.serialize.OutputFormat;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class BPELServiceTest {
      //service鐨勫懡鍚嶇┖闂?
	static final String ns = "http://xmlns.oracle.com/HelloWorld";

	public static void main(String args[]){
		Call call = null;
		try {
			call = createCall();
			Vector rtn = (Vector) call.invoke(createRequest());
			parse(rtn);
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ParserConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (FactoryConfigurationError e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

      /*
* 鍒涘緩Call瀵硅薄錛屽璁劇疆鐩稿叧灞炴э紝娉ㄦ剰錛氬叾涓殑灞炴у簲璇ユ槸閫氳繃鍒嗘瀽WSDL鏂囦歡鐢辯▼搴忓姩鎬佽幏寰楁潵璧嬪鹼紝
* 榪欓噷鍏ㄩ儴綆鍖栦負闈欐佽祴鍊?BR> */ static Call createCall() throws MalformedURLException, ServiceException{ org.apache.axis.client.Service s = new org.apache.axis.client.Service(); Call call = (Call) s.createCall(); call.setTargetEndpointAddress(new URL("http://robin:9700/orabpel/default/HelloWorld/1.0")); call.setSOAPActionURI("process"); call.setOperationName("process"); call.setProperty(Call.OPERATION_STYLE_PROPERTY, Style.DOCUMENT.getName()); call.setPortName(new QName(ns, "HelloWorldPort")); call.setPortTypeName(new QName(ns, "HelloWorld")); return call; } /*
       *鍒涘緩璇鋒眰鍙傛暟錛屽疄闄呬笂灝辨槸鏋勫緩DOM鐗囨柇錛屾牴鎹甒eb service瀵硅緭鍏ュ弬鏁扮殑瑕佹眰鏉ユ瀯寤猴紝瑕佸澶嶆潅錛岄兘鍙互瀹炵幇錛?BR> *榪欏氨鏄疍ocuemnt鐨勫ソ澶勶紝鐪佸幓浜嗗鏉傚璞$殑搴忓垪鍖栥?BR> */ static Object[] createRequest() throws ParserConfigurationException, FactoryConfigurationError{ DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = db.newDocument(); Element root = doc.createElementNS(ns, "HelloWorldProcessRequest"); Element input = doc.createElementNS(ns, "input"); input.appendChild(doc.createTextNode("robin")); root.appendChild(input); doc.appendChild(root); return new Object[]{new SOAPBodyElement(root)}; } // 瀵硅繑鍥炵粨鏋滆繘琛岃В鏋愶紝騫舵墦鍗般? static void parse(Vector v) throws Exception{ Document doc = ((SOAPBodyElement) v.get(0)).getAsDocument(); Element root = doc.getDocumentElement(); OutputFormat of = new OutputFormat(); of.setIndent(4); System.out.println(new DOMSerializerImpl().writeToString(root)); } }


涓婅堪浠g爜榪愯杈撳嚭緇撴灉涓猴細
<?xml version="1.0"?>
<HelloWorldProcessResponse xmlns="http://xmlns.oracle.com/HelloWorld">
   <result xmlns="http://xmlns.oracle.com/HelloWorld">robin</result>
  </HelloWorldProcessResponse>


涓婇潰鐨勪唬鐮佸緢綆鍗曪紝闇瑕佽鏄庣殑鏄細閲囩敤Document璋冪敤錛屽疄闄呬笂invoke鏂規硶鐨勫弬鏁版槸涓涓厓绱犵被鍨嬩負SOAPBodyElement鐨勫璞℃暟緇勶紝鑰岃繑鍥炵粨鏋滄槸涓涓厓绱犵被鍨嬬殑SOAPBodyElement鐨刅ector瀵硅薄銆?/DIV>

]]>
主站蜘蛛池模板: 亚洲电影在线免费观看| 国产美女精品视频免费观看 | 国产成人99久久亚洲综合精品| 成人黄18免费视频| 久久WWW免费人成人片| 99re热免费精品视频观看| 免费精品国偷自产在线在线| 国产人成免费视频网站| 国产成人精品免费视频大| 无码区日韩特区永久免费系列| 100000免费啪啪18免进| 免费精品国产自产拍在| 免费看的黄色大片| 免费国产a国产片高清网站| 免费吃奶摸下激烈视频| 国产成人亚洲精品影院| 亚洲线精品一区二区三区| 亚洲av最新在线网址| 久久久久亚洲av无码专区喷水| 亚洲综合激情六月婷婷在线观看| 亚洲国产成人久久99精品| 亚洲精品国产日韩| 老外毛片免费视频播放| 国产精品极品美女自在线观看免费| 成人性生交大片免费看中文| 99久久人妻精品免费一区| 91精品国产免费久久久久久青草 | 高潮毛片无遮挡高清免费视频| 一级大黄美女免费播放| 国产色无码精品视频免费| xx视频在线永久免费观看| 在线观看成人免费| 亚洲日韩国产一区二区三区| 亚洲AV综合色一区二区三区| 亚洲三级视频在线| 美景之屋4在线未删减免费| 国产va免费精品| 最近高清中文字幕免费| 在线免费观看污网站| 在线观看亚洲成人| 亚洲毛片无码专区亚洲乱|