How can I use URN in the soap actions?

291 views
Skip to first unread message

Андрей Спиридонов

unread,
Nov 17, 2014, 10:49:54 AM11/17/14
to sca...@googlegroups.com
Hi! After I've generated classes from my wsdl I'm trying to do request but failed because of the SOAP service using URN to navigate to actions instead of URL. Anybody knows how to work around or maybe solve clear this problem? Thanks in advance!

eugene yokota

unread,
Nov 17, 2014, 10:53:58 AM11/17/14
to sca...@googlegroups.com
Hi Андрей,

What are you currently seeing? MalformedURLException?
If so could you post an example of stack trace?

-eugene


On Mon, Nov 17, 2014 at 10:49 AM, Андрей Спиридонов <spir...@gmail.com> wrote:
Hi! After I've generated classes from my wsdl I'm trying to do request but failed because of the SOAP service using URN to navigate to actions instead of URL. Anybody knows how to work around or maybe solve clear this problem? Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "scalaxb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalaxb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Андрей Спиридонов

unread,
Nov 17, 2014, 1:01:38 PM11/17/14
to sca...@googlegroups.com
def plugin_snmp_getObjectTypeById(objectTypeId: BigInt): Future[stockquote.SO_Snmp_ObjectType] = 
        soapClient.requestResponse(scala.xml.Elem(targetNamespace map {defaultScope.getPrefix(_)} getOrElse {""}, "plugin_snmp_getObjectTypeById", scala.xml.Null, defaultScope, true,
          scalaxb.toXML(objectTypeId, Some("http://www.sevone.com/"), "objectTypeId", defaultScope): _*),
            Nil, defaultScope, baseAddress, "POST", Some(new java.net.URI("urn:SevOneApi#SevOneApiServer#plugin_snmp_getObjectTypeById"))).transform({ case (header, body) => 
            scalaxb.fromXML[stockquote.SO_Snmp_ObjectType]((scalaxb.Helper.resolveSoap11Refs(body.head) \ "return").head, Nil) }, {
              case x: scalaxb.Soap11Fault[_] => x
              case x => x
            })

This is one of the auto generated method. I've selected with green the place where I'm getting Exception

java.net.URISyntaxException: Illegal character in path at index 

In most cases what I have seen during google soap action url was just a simple url. Programs like SoapUI and Altova Xmlspy are able to managed such an urn's....


 

понедельник, 17 ноября 2014 г., 19:53:58 UTC+4 пользователь eugene yokota написал:

eugene yokota

unread,
Nov 17, 2014, 1:06:00 PM11/17/14
to sca...@googlegroups.com
Could you open a Github issue for this?

-eugene

Андрей Спиридонов

unread,
Nov 17, 2014, 1:25:42 PM11/17/14
to sca...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages