2.4.2 SOAPメッセージ例
以下はSAOPメッセージのサンプルです。
generateDataRequest
PDFファイルを生成して、クライアントにダウンロードする例
リクエストメッセージ<?xml version='1.0' encoding='utf-8'?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <generateDataRequest xmlns="http://schemas.brainsellers.com/webservices/bizstream/2006-10" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:ns2="http://schemas.brainsellers.com/webservices/common/2006-10"> <dataType> <pdf/> </dataType> <layoutData> <layoutDefinition uri="/bs/sample/xml/Sample1.xml"/> </layoutData> </generateDataRequest> </S:Body> </S:Envelope>
レスポンスメッセージ
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <common:fileData xmlns:common="http://schemas.brainsellers.com/webservices/common/2006-10"> <common:contentData xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmime:contentType="application/pdf"> 【BASE64データ】 </common:contentData> </common:fileData> </soapenv:Body> </soapenv:Envelope>
generateOutputRequest
PDFファイルを生成して、Amazon S3 に格納する例
リクエストメッセージ
<?xml version='1.0' encoding='utf-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<generateOutputRequest xmlns="http://schemas.brainsellers.com/webservices/bizstream/2006-10" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:ns2="http://schemas.brainsellers.com/webservices/common/2006-10">
<output>
<pdf>
<amazonS3 bucketName="bucketName" filePath="Test/Sample.pdf">
<tags>
<tag key="key1" value="value1"/>
<tag key="key2" value="value2"/>
</tags>
</amazonS3>
</pdf>
</output>
<layoutData>
<layoutDefinition uri="/bs/sample/xml/Sample1.xml"/>
</layoutData>
</generateOutputRequest>
</S:Body>
</S:Envelope>
レスポンスは、<bsws:amazonS3>のうち、リージョン、バケット名、ファイルパスの値を返します。
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <bsws:generateOutputResponse xmlns:bsws="http://schemas.brainsellers.com/webservices/bizstream/2006-10"> <bsws:amazonS3 region="ap-northeast-1" bucketName="bucketName" filePath="Test/Sample.pdf"/> </bsws:generateOutputResponse> </soapenv:Body> </soapenv:Envelope>
generateOutputDataRequest
CSVファイルを生成してクライアントにダウンロードし、同時に Amazon S3 に格納する例
リクエストメッセージ
<?xml version='1.0' encoding='utf-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<generateOutputDataRequest xmlns="http://schemas.brainsellers.com/webservices/bizstream/2006-10" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:ns2="http://schemas.brainsellers.com/webservices/common/2006-10">
<output>
<csv encoding="MS932" lineSeparator="CRLF">
<amazonS3 bucketName="bucketName" filePath="Test/Sample.csv">
<tags>
<tag key="key1" value="value1"/>
<tag key="key2" value="value2"/>
</tags>
</amazonS3>
</csv>
</output>
<layoutData>
<layoutDefinition uri="/bs/sample/xml/Sample1.xml"/>
</layoutData>
</generateOutputDataRequest>
</S:Body>
</S:Envelope>
レスポンスは、<bsws:amazonS3>のうち、リージョン、バケット名、ファイルパスの値を返します。
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <bsws:generateOutputDataResponse xmlns:bsws="http://schemas.brainsellers.com/webservices/bizstream/2006-10" xmlns="http://schemas.brainsellers.com/webservices/bizstream/2006-10"> <common:contentDataGroup xmlns:common="http://schemas.brainsellers.com/webservices/common/2006-10"> <common:contentData xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmime:contentType="text/csv"> 【BASE64データ】 </common:contentData> </common:contentDataGroup> <bsws:amazonS3 region="ap-northeast-1" bucketName="bucketName" filePath="Test/Sample.csv"/> </bsws:generateOutputDataResponse> </soapenv:Body> </soapenv:Envelope>
