나는 돌아 서서 외부 서버에 메시지를 게시하고 싶은 비누 서비스를 가지고 있습니다. WSO2 ESB 폼 데이터가 포함 된 HTTP POST
나는과 같이 컬을 통해이 작업을 수행 할 수 있었다 :curl --data-urlencode "filename=data.txt" --data-urlencode "filedir=/home/myfile/in"
--data-urlencode "busproc=MyBP" --data-urlencode "serverip=192.168.1.4"
--data-urlencode"uid=myuserid" --data-urlencode "pwd=mypwd"
http://somelocation.com:8833/webservice/inbound/here
그러나 나는 아주 올바르게 작동 얻을 수 없습니다. 여기 내 프록시 서비스는 다음과 같습니다
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="ExampleHTTPPostWithFormData"
transports="http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log/>
<property name="messageType"
value="application/x-www-form-urlencoded"
scope="axis2"
type="STRING"/>
<property name="HTTP_METHOD" value="post" scope="axis2" type="STRING"/>
<send>
<endpoint>
<address uri="http://somelocation.com:8833/webservice/inbound/here"
format="pox"/>
<property name="uid" value="user"/>
<property name="pwd" value="password"/>
<property name="filedir" value="/home/myfile/in"/>
<property name="busproc" value="myBP"/>
<property name="serverip" value="192.168.1.4"/>
<property name="filename" value="data.txt"/>
</endpoint>
</send>
<log level="full"/>
</inSequence>
</target>
<description/>
</proxy>
최종 서비스는 나를 URL에 게시 (단, 데이터 속성에 통과하지)를 참조 할 것.
왜 웹 사이트에 게시하려면 VFS를 사용합니까? 위에 파일 정보가 있지만 목표가 아닙니다. 목표는 양식 데이터로 HTTP 게시물을 작성하는 것입니다. – user2836244