锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV无码乱码精品国产,亚洲av无码片vr一区二区三区,中文字幕亚洲日韩无线码http://m.tkk7.com/robin/category/6613.htmlzh-cnTue, 27 Feb 2007 20:36:45 GMTTue, 27 Feb 2007 20:36:45 GMT60 JavaScript璋冪敤Web servicehttp://m.tkk7.com/robin/archive/2006/01/05/26773.html浜虹敓鏄敱鍥炲繂緇勬垚鐨?/dc:creator>浜虹敓鏄敱鍥炲繂緇勬垚鐨?/author>Thu, 05 Jan 2006 12:01:00 GMThttp://m.tkk7.com/robin/archive/2006/01/05/26773.htmlhttp://m.tkk7.com/robin/comments/26773.htmlhttp://m.tkk7.com/robin/archive/2006/01/05/26773.html#Feedback0http://m.tkk7.com/robin/comments/commentRss/26773.htmlhttp://m.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://m.tkk7.com/robin/archive/2006/01/02/26385.html浜虹敓鏄敱鍥炲繂緇勬垚鐨?/dc:creator>浜虹敓鏄敱鍥炲繂緇勬垚鐨?/author>Mon, 02 Jan 2006 14:09:00 GMThttp://m.tkk7.com/robin/archive/2006/01/02/26385.htmlhttp://m.tkk7.com/robin/comments/26385.htmlhttp://m.tkk7.com/robin/archive/2006/01/02/26385.html#Feedback2http://m.tkk7.com/robin/comments/commentRss/26385.htmlhttp://m.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>

]]>
主站蜘蛛池模板: 亚洲国产日韩在线| 亚洲色婷婷综合开心网| 亚洲人成网址在线观看| 午夜精品免费在线观看| 亚洲自偷自拍另类12p| 国产精品区免费视频| 91精品国产亚洲爽啪在线观看| 久久精品视频免费看| 亚洲人成亚洲精品| 青娱分类视频精品免费2| 亚洲国产美女精品久久久久| 无码av免费毛片一区二区 | 亚洲国产精品高清久久久| 国产性生大片免费观看性 | 亚洲Av高清一区二区三区| 国产精品入口麻豆免费观看| 亚洲午夜精品一区二区公牛电影院 | 韩国亚洲伊人久久综合影院| 国产一区二区三区免费视频| 免费又黄又爽又猛大片午夜| 亚洲午夜福利AV一区二区无码| 免费成人在线视频观看| 亚洲色欲色欲综合网站| 在线天堂免费观看.WWW| 国产尤物在线视精品在亚洲| 久久久久久A亚洲欧洲AV冫| 精品成人免费自拍视频| 亚洲人成www在线播放| 免费va在线观看| 国产激情免费视频在线观看| 亚洲精品免费在线视频| 免费日本黄色网址| 国产成人一区二区三区视频免费| 久久精品国产亚洲av麻豆图片| 免费欧洲美女牲交视频| 午夜精品一区二区三区免费视频| 亚洲一本一道一区二区三区| 国产精品V亚洲精品V日韩精品| 在线观看免费视频资源| 狠狠热精品免费观看| 亚洲综合自拍成人|