[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-13 Thread oskar.carlstedt
Sorry! Didn't get it all. I think this thread would give you answers about how to do handle attachments in the way you want. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=124280 /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129309#412930

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-13 Thread oskar.carlstedt
Hi! Attachments are a tricky part. The simplest way to do is to add your attachment as a base64binary in your schema, but that is not what you always want to do. I've been asking a lot about how to use MTOM on a SOAPMessage, but I didn't get any response at all. To answer your question about h

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-13 Thread EricJava
Hello Oskar, Thanks for the suggestion. I tried that. After doing it that way, I had the problem of needing to use JAXB to put my parameters into the SOAPBody. That worked, but then I got unsolvable class conflicts where I got to this: [java] Exception in thread "main" com.sun.xml.ws.s

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-12 Thread oskar.carlstedt
Hi! You can always set the url in the service object when adding the port, like the following: | Service service = Service.create(new QName("...", "...")); | service.addPort(new QName("...", "..."), SOAPBinding.SOAP11HTTP_BINDING, "http://service.location/at/some/context";); | dispatch =

[jboss-user] [JBossWS] - Re: Specifying the server's URL in the client?

2008-02-11 Thread EricJava
No one has any ideas on this? Right now it looks like my options are either a) the client must fetch the WSDL every single time it makes a request, or b) the server's URL must be hard-coded in the WSDL file that is bundled with the client. Neither of these are good. There's no reason at all fo