• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem when using SoapConnection method call()  RSS feed

 
Vierda Mila
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I'm trying making connection by calling method call() from SoapConnection but it always throw

com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message

I have provide username and password in Mime header as per below:



really appreciate for any kind help.

Thank you
-Vierda Mila-
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
You do not say what kind of security mechanism you are using. If you were using basic authentication, this is the way you would set the username and password before invoking a web service:


Update: ...and the way in the post above is correct for SAAJ.
Best wishes!
 
Vierda Mila
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ivan,

Thank you for your kind reply and sorry for incomplete information.
Actually I'm using SAAJ for MM7 and the specification as per below :

When the MMS content is delivered, CP differentiates each service using the username and password parameters which also act as an authentication for the CP, therefore, each service must have a unique username. The authentication process is done on HTTP Header , with the following format :

POST /mm7adapter HTTP/1.0
Host: 192.168.31.143:9800
User-Agent: CDMS v.1.0
Authorization: Basic bG9hZHRlc3Q6bG9hZHRlc3Q=

Autorization header is following HTTP Basic authorization, as explained bellow:

Authorization: Basic base64_encode(“username:password”)
MM7 request messages shall be transferred in an HTTP POST request. MM7 responses shall be transferred in an HTTP Response message. The media type “text/xml” shall be used for messages containing only the SOAP envelope. MM7 requests that carry a SOAP attachment shall have a “multipart/related” Content-Type. The SOAP envelope shall be the first part of the MIME message and shall be indicated by the Start parameter of the multipart/related Content-Type. If a SOAP attachment is included it shall be encoded as a MIME part and shall be the second part of the HTTP Post message. The MIME part should have the appropriate content type(s) to identify the payload. Figures below provide few examples of the message structure. This MIME part shall have two MIME headers - Content-Type and Content-ID fields.


already googling for this problem for 2 days and not yet find best solution.
Thank you for any kind help.

best regards,
-Vierda Mila-
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Since you have this error message: "Error during saving a multipart message"
How about trying to write the SOAP message to the console before sending it?
This to make sure the message is OK.
Best wishes!
 
Vierda Mila
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ivan,

Thanks for your kind reply. will check my SOAP message again

best regards,
-Vierda Mila-
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!