You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by 杨健 <he...@gmail.com> on 2007/08/30 05:48:02 UTC

mail transport problem: It doesn't support MTOM, and address format problem and so on.

Hi guys,
     I want use mail as the transport in Axis2. I followed the wizard of
axis2 mail transport setup carefully. I enabled MTOM and found that
SimpleMailListener can't parse the MTOM coded message(throws a exception of
"Unexpected character '-' (code 45) in prolog"), so I disable it.
     Then the exception is gone, but the message is not delivered to the
webservice, which is the other question. First I use the mail EPR address "
mailto:th@192.168.0.18/axis2/services/FileOperation<th@192.168.0.18/axis2/services/FileOperation>"
and client side throws a expception of "Invalid addresses", and I tried "
mailto:th@192.168.0.18 <th...@192.168.0.18>" and use ws-addressing and found it
works, but the message is not delivered to the webservice as mentioned
above. I'm sure ws-addressing is configured well because I also use tcp
transport and it works fine.
     Can anybody help? Thank you very much.
     Here is the mail send by mailsender:
     <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:wsa="
http://www.w3.org/2005/08/addressing" xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsa:To>mailto:gz@192.168.0.18</wsa:To><wsa:MessageID>urn:uuid:55C0C935DA9D99D8651188444186356</wsa:MessageID><wsa:Action>urn:recv</wsa:Action></soapenv:Header><soapenv:Body><trans:recvxmlns:trans="
http://www.gzydt.com.cn/transport"><trans:type>register</trans:type><trans:registerreq><trans:nodeid>th</trans:nodeid><trans:nodename>tianhe</trans:nodename><trans:protocol>mailto,mailto:th@192.168.0.18;http,http://192.168.0.13:8088/axis2/services/FileOperation</trans:protocol></trans:registerreq></trans:recv></soapenv:Body></soapenv:Envelope
>