블로그 이미지
평범하게 살고 싶은 월급쟁이 기술적인 토론 환영합니다.같이 이야기 하고 싶으시면 부담 말고 연락주세요:이메일-bwcho75골뱅이지메일 닷컴. 조대협


Archive»


 

'SOAP'에 해당되는 글 2

  1. 2010.06.25 WCF가 몬가 했더니..
  2. 2008.12.10 XML에서 Namespace 제거하는 XSLT
 

WCF가 몬가 했더니..

프로그래밍/C# & .NET | 2010.06.25 11:52 | Posted by 조대협
간단하게 튜토리얼 보고 테스트 프로그램 하나 짜서 송수신 전문을 봤더니...

송신 전문
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <a:Action s:mustUnderstand="1">http://tempuri.org/IEvalService/GetEvals</a:Action>
    <a:MessageID>urn:uuid:489b8c48-e094-418e-8f6b-60321ffc9d38</a:MessageID>
    <a:ReplyTo>
      <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
    </a:ReplyTo>
  </s:Header>
  <s:Body>
    <GetEvals xmlns="http://tempuri.org/" />
  </s:Body>
</s:Envelope>

수신 전문
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
  <s:Header>
    <a:Action s:mustUnderstand="1" u:Id="_2">http://tempuri.org/IEvalService/GetEvalsResponse</a:Action>
    <a:RelatesTo u:Id="_3">urn:uuid:dfac6ed4-fbcc-46d6-9fd8-38ed4604aa4c</a:RelatesTo>
    <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      <u:Timestamp u:Id="uuid-20a62935-2716-472d-ba79-1581763744f3-17">
        <u:Created>2010-06-25T02:50:53.419Z</u:Created>
        <u:Expires>2010-06-25T02:55:53.419Z</u:Expires>
      </u:Timestamp>
      <c:DerivedKeyToken u:Id="uuid-20a62935-2716-472d-ba79-1581763744f3-7" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc">
        <o:SecurityTokenReference>
          <o:Reference URI="urn:uuid:9ab8a01d-b2fb-40b4-bcee-e057f49e1a93" ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct" />
        </o:SecurityTokenReference>
        <c:Offset>0</c:Offset>
        <c:Length>24</c:Length>
        <c:Nonce>pxd/ozyLoq7PsUk2mw2X2A==</c:Nonce>
      </c:DerivedKeyToken>
      <c:DerivedKeyToken u:Id="uuid-20a62935-2716-472d-ba79-1581763744f3-8" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc">
        <o:SecurityTokenReference>
          <o:Reference URI="urn:uuid:9ab8a01d-b2fb-40b4-bcee-e057f49e1a93" ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct" />
        </o:SecurityTokenReference>
        <c:Nonce>3eijqwLZYaqrBjcduAkjow==</c:Nonce>
      </c:DerivedKeyToken>
      <e:ReferenceList xmlns:e="http://www.w3.org/2001/04/xmlenc#">
        <e:DataReference URI="#_1" />
        <e:DataReference URI="#_4" />
      </e:ReferenceList>
      <e:EncryptedData Id="_4" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:e="http://www.w3.org/2001/04/xmlenc#">
        <e:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
        <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
          <o:SecurityTokenReference>
            <o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/dk" URI="#uuid-20a62935-2716-472d-ba79-1581763744f3-8" />
          </o:SecurityTokenReference>
        </KeyInfo>
        <e:CipherData>
          <e:CipherValue>OHkE4mba4bbl+afwbRxjKTDQfRazYw+KiMLjCYX/FpgZ3nKmgUbLlZGWe3Q6Z6x1zvIX5WstoP2Cy9U49LgoGkNvGqbaAqKkZBYmjuyWbrcNXnNwLVWo5OMxhSUOT0Kr9lwRTSUw/g1c83E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3v0n+/zXsDfMk9XrulwqFvcQ7/DtpwjmDzL9K7pEBpOCbVUSW0mvnWy9zZpO3l3miqJ49IFbFJ/mUuQnCH/Hbcyl4FLP7WDtibD5iK1IfT84taSgzXNsn/PnBaI2hcmO76wSqIxKntsmyZwDvIHh139x2dXUsPDJoQEBwNDPSvue2xGFgsxjOw/8l+z/83TNSInwscDtxOsuUSaF/Yi/EsKRljfi/whDgz85eWvZpdw4gDVxGFEKvJzMfre1G47WQQCC52rAMEtw7aHrFS2AdHbzXGZmLHX336MmHxE09eAiwB2jkjoGdlPPuqlhxY65ZEiq2neALmtsCjXpv1ALll1YOqJve8bqZMO9g0prB++TFovGSNFa2EfGcVhKNA89Xh40BRqrNRA/eDdJDa3vC1kyI1JbyF/kPHiyJo7rqcWI+vNW5smflOprb1UGApqKYrDeKRJzFw9kVrxY17qXxWAQFnK6F3toK4yqGkwp1AwpVFTAS7W2tkuLujMtmwTX9TWXdIwWjEf+2VB1c2yEEuW9YJUMYztim+wEbCAUy/CFZJaugScDtWm+cbLersOq4Iq9xLua3uixxogPFxNGj4/Ha9prrmtAJdm+mzqPu5m92Wnb9wcAevw/nvqqc8AcFybDCdHPMtfbRsbnU1oaCGJRVPC1TK01Obsj8s6SWMLv3P5ygZZoUm7Bp7xirsP3LhFT4L+6/rqy9syMHAhyKjbv6o0EgRpKqPQbKz8nZk9QpzGKWnln23X/NfRDInwJODvIVBWP2txSW24WVzlXplcmdxmYiVcm1JTjeNREu5DruFYgVuoYwnfgRvWaN35X87kLs06Zl8Ryga8SO1D9BNkv5fCNV3W9xjubKGusuNHsbObkL/LwSGEonc0bkk+F+4HgTAdpVIQkMmu2ta5WC5YWpqeJVoj8F9RmmitF8rbzlBFJ2noptLAoy</e:CipherValue>
        </e:CipherData>
      </e:EncryptedData>
    </o:Security>
  </s:Header>
  <s:Body u:Id="_0">
    <GetEvalsResponse xmlns="http://tempuri.org/">
      <GetEvalsResult xmlns:a="http://schemas.datacontract.org/2004/07/EvalServiceLibrary" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <a:Eval>
          <a:Comments>Test Comment</a:Comments>
          <a:Id>7c88a50c-cb86-4a94-934a-8552532bc2db</a:Id>
          <a:Submitter>bycho</a:Submitter>
          <a:TimeSubmitted>2010-06-25T11:48:00</a:TimeSubmitted>
        </a:Eval>
      </GetEvalsResult>
    </GetEvalsResponse>
  </s:Body>
</s:Envelope>

웹서비스다... 설마 이게 다는 아니겄지... REST 구현 함 찾아봐야 쓰겄다.
본인은 구글 클라우드의 직원이며, 이 블로그에 있는 모든 글은 회사와 관계 없는 개인의 의견임을 알립니다.

댓글을 달아 주세요

XML에서 Namespace 제거하는 XSLT

프로그래밍/XML 관련 | 2008.12.10 14:16 | Posted by 조대협
SOAP2REST 변환에서 유용하게 사용할 수 있음

==
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl">
    <xsl:template match="comment()|processing-instruction()|/">
        <xsl:copy>
            <xsl:apply-templates />
        </xsl:copy>
    </xsl:template>
    <xsl:template match="*">
        <xsl:element name="{local-name()}">
            <xsl:apply-templates select="@*|node()" />
        </xsl:element>
    </xsl:template>
    <xsl:template match="@*">
        <xsl:attribute name="{local-name()}">
            <xsl:value-of select="." />
        </xsl:attribute>
    </xsl:template>
</xsl:stylesheet>
==

본인은 구글 클라우드의 직원이며, 이 블로그에 있는 모든 글은 회사와 관계 없는 개인의 의견임을 알립니다.

댓글을 달아 주세요