Workshop - How to send a SOAP message directly into a JMS qeue......
Hi All,
I need to create a web service in Workshop that sends the received SOAP message
body to a queue without mapping it to Java object i.e. the JMS message type is
text message and not Object message. I would very much appreciated if anyone out
there who can advise me on this.
Thanks in advance.
Regards,
Boon Keong
Hi,
Are you open for other solutions besides Workshop?
WebLogic Server provides another Web Service implementation outside of Workshop.
This web service implentation has a concept of handlers which intercept SOAP
messages. It is a way to gain access to the SOAP message. You could then route
the SOAP message to a JMS queue from the handler.
These URLs will help:
http://e-docs.bea.com/wls/docs70/webserv/index.html
http://e-docs.bea.com/wls/docs70/webserv/design.html#1053805
Also, there is an examples in the WebLogic Server 7.0 installation:
%BEA_HOME%\samples\server\src\examples\webservices\handler
hope this helps,
pat
"Boon Keong" <[email protected]> wrote:
>
Hi All,
I need to create a web service in Workshop that sends the received SOAP
message
body to a queue without mapping it to Java object i.e. the JMS message
type is
text message and not Object message. I would very much appreciated if
anyone out
there who can advise me on this.
Thanks in advance.
Regards,
Boon Keong
Similar Messages
-
How to send a SOAP message with attachments
How to send a SOAP message with attachments thru webservice using axis-1_3 can any one sujjest.............................
Please refer
http://www.javaworld.com/javaworld/jw-09-2003/jw-0912-webservices.html
http://xml.sys-con.com/read/40315.htm -
I need to secure SOAP message sent into SOAP adapter, how to?
Hi guys,
My scenario uses SOAP and I need to secure this SOAP message sent into SOAP adapter. As I have read in the documentation, HTTPS is possible only on the SOAP receiver adapter. But my is SENDER.
COuld you help me please, how to solve it? Or post some link? Or, if you have your own approach, to let me know?
Thanx, PeterHi,
you can use SSL with the sender adapter. Please see the extract of the SOAP Adapter FAQ (Note #856597) below:
<b>Q:</b> Can I use SSL for my sender adapter?
<b>A:</b> Yes. Normally, the SOAP adapter servlet runs on the engines HTTP port. But you can activate the engine's HTTPS port so that this servlet can receive messages sent to the HTTPS port. See the documentation about the J2EE engine's security configuration.
I am afraid, I haven't yet tried this myself, so you will need to consult the J2EE documentation.
Regards,
HC -
We need a small SSIS package to pass a SOAP message to a SOAP server and receive the response xml message.
We have the SOAP Endpoint, SOAP Action, and SOAP Message (which contains authentication elements). They work in a Talend Data Integration job (using
Talend's tSOAP component). A screenshot showing the Talend job and the configuration of the tSOAP component
is attached.
We need to implement the same thing in a Microsoft SQL Server 2012 SSIS package but haven't been able to get an SSIS Web Services task to work.
We haven't been able to configure it to pass the SOAP Action and SOAP Message.
How should this be accomplished in SSIS?
kholbergerI guess I was not clear. The Talend job works perfectly (and it took only a few minutes to configure).
I need to replicate the SOAP request function in an SSIS package. I've been trying to configure an SSIS Web Services Task to do that without success.
The SSIS Web Service Task asks for the .wsdl file, which I provide (though the Talend component
does not ask for it), but the SSIS WST does not ask for the SOAP Action or SOAP message. The target web service is protected by a security gateway that rejects the SSIS WST request. Somehow, the Talend tSOAP component sends the
SOAP message, which contains the security definition and authentication credentials (you can see part of that in the screen shot) which the endpoint accepts.
The question is: "How does one implement a SOAP web service request in an SSIS package that sends the SOAP Message".
Thanks.
kholberger -
Hi All,
I am using project server 2007 and WSS 3.0.
I have been facing a strange issue for couple of days. I am unable to open PWA in browser and MS Project Pro on application server.
Everything is correct whether it is URL or MS Project profile account on MSP. This is strange because i can open same PWA/MSP from other computers (Database server / Client PCs) but not locally on server.
When i try to connect to MSP on App server, i get the following errors in event viewer.
Event Type: Error
Event Source: MSSOAP
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: Connection time out..
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: An unanticipated error occurred during the processing of this request..
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description: Soap error: Sending the Soap message failed or no recognizable response was received.
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: Unspecified client error..
One more issue i am facing and i guess that is related to above issue. The Issue is, when i am creating a new project, It's workspace gets created but doesn't get linked to the project and i can't link it manually because it already exists for the project.
sandeepHi Paul ,
Thanks for reply. The project server URL was already added to the Trusted
Sites/Local Intranet areas in IE.
sandeep -
How to send a text message to a group of people and save the list for next time?
how to send a text message to a group of people and save the list for next time from an iphone 4s?
Hey there ipremacha,
It sounds like you need to enable Text Message Forwarding on your iPhone for your iPad to send MMS/SMS messages through your phone.
Connect your iPhone, iPad, iPod touch, and Mac using Continuity
Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
Thank you for using Apple Support Communities.
Regards,
Sterling -
How to send SMS ( Short Message Service ) from java code
Hi
How to send SMS ( Short Message Service ) from java code.
Thanks
GauravDo you need to receive SMS? If you need to receive SMS, you will need to host your own GSM device or modem so that people can send you SMS.
If not, you can just use internet SMS gateways like clickatell as mentioned above will do the work, and post to them by HTTP, XML or email. The cost is about 6-8 cents per SMS. There are cheaper services, but not always reliable. If you need to host your own GSM device, you can use software like http://www.kannel.org (GPL Open Source) or http://www.visualgsm.com. Alternatively, you may obtain a shortcode from your Telco - but these come with monthly subscription of maybe one or two hundreds.
Regards,
Joshua
<SMS Gateway>@Expert -
How to make a SOAP message?
Hi!
I'm trying to send an object to a JMS queue using SOAP and Spring Integration. I already made the object into XML like so:
<app:MyClass>
<app:myValue>A value</app:myValue>
</app:MyClass>But I can't figure out how to wrap this into a SOAP message in a satisfying way. I tried using the SOAPMessage class, but since Spring doesn't like sending the message object as-is, I first have to convert it to a String:
//Create message
MessageFactory messageFactory = MessageFactory.newInstance();
soapMessage = messageFactory.createMessage();
//Get parts
SOAPPart soapPart = soapMessage.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
//Insert content
body.addTextNode(myClassXMLString);
soapMessage.saveChanges();
//Convert message to String
ByteArrayOutputStream stream = new ByteArrayOutputStream();
soapMessage.writeTo(stream);
String string = new String(stream.toByteArray());That produces an output that look something like this:
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Header/><env:Body>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&#13;
&lt;app:MyClass xmlns:app="http://namespace.myurl.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;&#13;
&lt;app:myValue&gt;A value&lt;/app:myValue&gt;&#13;
&lt;/app:MyClass&gt;
</env:Body></env:Envelope>So I have to do some string editing to make it look proper and fix the tags. But at that point I might as well just add the Envelope and other SOAP tags manually with a StringBuilder.
Is there a better way to do this?I don't know much about SOAP, but I would suggest that if you don't want that data to be handled as text, then you shouldn't be using the addTextNode() method. And working backwards, you shouldn't be converting your data to XML text like that either. Probably you should be doing something else to add the object directly into the SOAP document, but as I say I don't know much about SOAP so I can't say what.
But I would expect any decent SOAP tutorial to have an example of how to put an object into a SOAP document. -
How to get full SOAP message in WebService
hi,
Is it possible to get SOAP message while Request operation during transaction in WebService.
I tried with Handler, while retreiving message it is having a MessageContext. How to initilize that like example
public boolean handleRequest(MessageContext mc) {
SOAPMessageContext messageContext = (SOAPMessageContext) mc;
System.out.println("** Request: "+ messageContext.getMessage().toString());
return true;
}while i make a class called SoapHdlr i have implemented all methods including the above.
In that from my class if i want to call the above method i need to pass MessageContext how to give that MessageContext or any other ways to get SOAPMessage fully.
plz can any one guide me there
ThanKQI think, there are some concepts missunderstood. First if you use JAX-WS- Metro framework, this kind of handlers will work. Also you should identify your SOAPHandler for your web service. For ex: in Netbeans 6, you can right click on service and select configure handlers. Then you decide your handler.
Then automatically, Metro framework directs SOAPMessages to your SOAPHandler to handle full SOAPs. HandleMessage() method will work.
If you have problem again, just ask. -
Help, how to monitor the soap message sent by JAX-WS
Hi,everyone:
I want to monitor the soap message sent by JAX-WS using apache TCPMon.
For example, the JAX-WS is deployed on port 8080 , I make TCPMon listening on port 4444 and send soap request to port 4444 using JAX-WS.
Code in client:
@WebServiceClient(name = "JAX_WS", targetNamespace = "http://www.example.org/JAX_WS/", wsdlLocation = "file:/E:/zwz/EclipseWorkspace/JAX_WSDemo/WebRoot/META-INF/JAX_WS.wsdl")
public class JAXWS_Service extends Service {
private final static URL JAXWS_WSDL_LOCATION;
private final static Logger logger = Logger
.getLogger(demo.client.JAXWS_Service.class.getName());
static {
URL url = null;
try {
//URL baseUrl;
//baseUrl = demo.client.JAXWS_Service.class.getResource(".");
url = new URL("http://localhost:4444/JAX_WSDemo/JAXWSBean");
} catch (MalformedURLException e) {
logger
.warning("Failed to create URL for the wsdl Location: 'file:/E:/zwz/EclipseWorkspace/JAX_WSDemo/WebRoot/META-INF/JAX_WS.wsdl', retrying as a local file");
logger.warning(e.getMessage());
JAXWS_WSDL_LOCATION = url;
public JAXWS_Service(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
public JAXWS_Service() {
super(JAXWS_WSDL_LOCATION, new QName("http://www.example.org/JAX_WS/","JAXWSBeanService")); //JAX_WS
@WebEndpoint(name = "JAX_WSPort")
public JAXWS getJAXWSSOAP() {
return super.getPort(new QName("http://www.example.org/JAX_WS/","JAX_WSPort"), JAXWS.class); //JAX_WSSOAP
}But i get the exception:
Exception in thread "main" com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.
java.net.SocketException: Unexpected end of file from server
java.net.SocketException: Unexpected end of file from serverAnd the TCPMon doesn't receive anything.
If i use Axis2, the TCPMon will work fine.
I cannot figure out how to configure the webservices.
Could anyone help me? Thanks a lot.[http://blog.vinodsingh.com/2007/02/monitor-soap-messages.html|http://blog.vinodsingh.com/2007/02/monitor-soap-messages.html]
Edited by: vinod.singh on 7 Apr, 2009 11:03 AM -
Error while sending XML SOAP message to other network
Hi,
I have a java application using SOAP through which I am sending request to a machine in the same network. It is giving the response in xml and i am able to parse it.
But when I tried to give the IP in the destination i.e the IP in the other network.
Error message SAAJ 0009 i.e message sending failed is getting to me.can somebody help to me.
Thanks
AbhilashHi Ricardo ,
I have the correct port now.
the url looks like
http://<host>:50000/XISOAPAdapter/MessageServlet?channel=:SIEBEL_DEV:SOAP_CUST
when I am testing it in the XML spy. and send a soap server request. I am getting the popup for user authentication . once i put my user id it gives me a error saying
<b>HTTP operation 'POST' could not be performed on URL
'/XISOAPAdapter/MessageServlet?channel=:SIEBEL_DEV:SOAP_CUST&version=3.0&Sender.Service=SIEBEL_DEV&Interface=http%3A%2F%2FOFCOM%2FUNIFY%2FCustomerMaster%5EMI_CUST' due to an error :
The connection to the server was terminated abnormally</b>
Any Idea as to why is such a error is coming
Thanks for the help
Nikhil -
How to send a soap request trought activeXobject/XMLHttpRequest?
Hi everyone,
I am new at Oracle CRM OnDemand and i wanted to make a web applet with javascript that asks for the parent's informations of the current account, but i fail to send the request they say that i do not have the permission
Connection error: Permission Denied
I've read some parts of the webservice guide but nothing to show examples of how to construct good SOAP requests.
If anyone have some links or tips to help, please share them, thank you.Hi,
Enable the below option in your IE browser.
Go to Tools -> Internet Options -> Security -> Internet -> Custom Level -> Miscellaneous -> Access data sources across domains
After enabling it should work. -
How to send a text message from my desktop computer ?
How can I send a text message from my desktop computer using Firefox ?
There are many free web-to-phone text services, such as http://textem.net/
If you intend to do a lot of this, it may be best to have some IM services that can communicate with cellphones (I use AIM). -
How to send a text message instead of imessage on Mac and Ipad iOs 8.1?
My iphone 6 Plus, ipad mini 2 and MBA on OSX Yosemite are all linked together under the same wireless network. However when i send a message on my Mac to my friend who is using an iphone, default sending is via imessage. How can i choose to send a text message instead of imessage? WHy? because sometimes my friend is not online. So i need to send a text message that my messages are received real time.
Hey there ipremacha,
It sounds like you need to enable Text Message Forwarding on your iPhone for your iPad to send MMS/SMS messages through your phone.
Connect your iPhone, iPad, iPod touch, and Mac using Continuity
Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
Thank you for using Apple Support Communities.
Regards,
Sterling -
Hi everyone.
I've generated a web service in netbeans 5.5 with SAAJ.
I've run my web service client. The incoming message (service soap response) is
empty.
The problem is, my soap message (payload) is not appearing in the soap response.
I expect to see....
<?xml version="1.0" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://mywork">
<soapenv:Body>
<ns1:getMessageResponse>
<document>transfer<document>
<number>123456<number>
<telephone>555-12345<telephone>
</ns1:getMessageResponse>
</soapenv:Body>
</soapenv:Envelope>
But i receive the "return" element only, without payload.
<ns1:getMessageResponse>
<return/>
</ns1:getMessageResponse>
My service and client method is listed below.
Service....
public SOAPMessage getMessage() {
SOAPMessage message = null;
try {
MessageFactory mf = MessageFactory.newInstance();
message = mf.createMessage();
SOAPPart sp = message.getSOAPPart();
SOAPEnvelope env = sp.getEnvelope();
SOAPBody body = env.getBody();
SOAPHeader header = env.getHeader();
header.detachNode();
SOAPFactory sf = SOAPFactory.newInstance();
Name ElName = sf.createName("getMessage", "ns1", "http:mywork");
SOAPBodyElement sbe = body.addBodyElement(ElName);
SOAPElement name = sbe.addChildElement("name");
name.addTextNode("transfer");
SOAPElement document = sbe.addChildElement("document");
document.addTextNode("123456");
SOAPElement telephone = sbe.addChildElement("telephone");
telephone.addTextNode("555-12345");
message.saveChanges();
} catch (Exception e) {
System.out.println(e.getMessage());
return message;
Client Request....
public static void main(String[] args) {
// TODO code application logic here
try {
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
SOAPConnection con = scf.createConnection();
MessageFactory mf = MessageFactory.newInstance();
message = mf.createMessage();
SOAPPart sp = message.getSOAPPart();
SOAPEnvelope env = sp.getEnvelope();
SOAPBody body = env.getBody();
SOAPHeader header = envelope.getHeader();
header.detachNode();
SOAPFactory sf = SOAPFactory.newInstance();
Name ElName = sf.createName("getMessage", "ns1", "http:mywork");
SOAPBodyElement sbe = body.addBodyElement(ElName);
message.saveChanges();
URL urlep = new URL("http://localhost:8080/jaxws05/jaxws05?WSDL");
SOAPMessage reply = con.call(message, urlep);
con.close();
} catch(Exception ex) {
// TODO handle custom exceptions here
Can anyone please help? , Thanks. --NelsonI'd suggest you post this in the workshop newsgroup.
I don't believe Workshop supports SOAP w/attachments in the current
release, but you should ask in the workshop group for suggestions.
-- Rob
John wrote:
I'm trying to create a web service which takes an attachment and in
the BEA site, they have an example called "filetransfer" which does
what I'm looking for.
The example uses a SOAPMessageContext.getMessage() and
SOAPMessage.getAttachments(); however, there doesn't seem to be any
properties or methods which returns any of these object types.
Are handling file attachments beyond the scope of weblogic workshop,
or is there another way around this using workshop?
Thanks.
Maybe you are looking for
-
I want to transfer my songs from the old iTunes that I saved toi the new iTunes on my computer from a file I saved and keep the song titles in tact. how do I do this.?
-
Server start or server stop sometimes hands
If I try to delete the server because its not responding to a stop then that does not work too. I deleted the server entry in the server.xml, and this removed the server however I may have screwed something up by doing that! Why do I do when the serv
-
Intel Parallel Studio XE install
I have a current license from Intel for Parallel Studio Professional. However, the Intel installer doesn't support Arch. I did grab my license file, .lic though. I then tried to install the package from the AUR but that didn't work as well. ==> WARNI
-
How do I change the default on shutting down Lion to NOT relaunch open windows?
How do I change the default on shutting down Lion to NOT relaunch open windows? And how can I have Safari always open in full screen mode? I have to set it every time I open Safari.
-
Correct assessment of the problem?
Hi, During the small hours of this morning we experienced some cluster trouble. Digging through the logs I have conclude that there was either an outage on the multicast lan, or the DNS for the multicast was down. Here's an extract of the logs, could