Given WSDL, need to generate example request / response XML to give testers
Without actually making the service calls I need to generate example XML request and response messages for each service in a given a WSDL.
So far the only other tool that can do this is the Oxygen xml editor wsdl inspector. Not even XMLspy does this.
Just wondering if my experimenting with Jdev 11.(latest) has missed a way to get this accomplished?
tnx curt
how about SoaPUI tool?
Similar Messages
-
Workbench freezes on call to BAPI_PRODORDCONF_GETLIST Request/Response XML
I have created a simple transaction in MII 12.0.6 with three JRA actions: Start Session, Function Call, and End Session. From the configuration dialog of the Function Call action, I confirmed the existance of BAPI_PRODORDCONF_GETLIST via a BAPI search. I attempted to select this BAPI only to have the Workbench freeze up. This BAPI works flawlessly in SE37. I checked the logs and saw that the following error message was thrown:
com.sap.mw.jco.jra.JRA$ResourceException: Couldn't execute interaction. Transaction rolledback due to connection interruption...
I am using the same JRA connection to call BAPIs in other transactions without any issues.
Has someone ran into a similar issue before that could assist me in resolving this?
FYI...my objective is to obtain a list of confirmations, including the confirmation number and confirmation counters, from the output of this BAPI which will be inputted into BAPI_PROCORDCONF_GETDETAIL to maintain a count of the yield and scrap already confirmed for that particular operation/phase.
Thanks,
Michael Teti
Senior Solutions Consultant
SeeIT Solutions, LLCMichael,
It was my understanding (via customer confirmation) that the returned Yield and Scrap located in the Phase tables of the BAPI_PROCORD_GET_DETAIL Bapi are the Planned Operation Yield and Scrap for that operation and not the Yield and Scrap already confirmed. The Help documentation in the BAPI Explorer does not verify this one way or another.
Also, after numerous attempts of trying to pull down the BAPI_PROCORDCONF_GETLIST Request/Response XML, the configuration dialog actually closed. It tooke quite a long time to complete. My guess is that it timed out because when I look at the BAPI structure, there was none.
I did see the other thread prior to my submission but since that thread was referring to a JCO connection and a timeout wasn't actually confirmed on my end, I decided to creat a new one.
Thanks,
Michael Teti -
Outputting request/response XML
I usually tend to use a network analyzer to examine outgoing/incoming packets for actual XML. However, I'm invoking web services using HTTPS and due to the encryption I cannot see the packets' payload. I tried using the following VM setting: -Dweblogic.webservice.verbose=true but it didn't help. My question is whether anybody knows how to output the web service XML (outgoing/incoming) using either a system property or within the code?
Refer this link for Custom Handlers: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv_adv/handlers.html
There may be some other simpler approach.
BUT, you can use Handlers approach to intercept the outgoing and incoming request and in that method, you can do System.out.println or write the webservice xml into a File. Below is the code snippet in custom handler, where I am writing my Ougoing WebServices XML into a file named: webServiceRequest.xml
Create a custom Handler class and implement the logic in the method: handleMessage(SOAPMessageContext messageContext). I used standard sun jdk imports and nothing specific to weblogic. Then add this Handler to my Service binding provider.
*** To add custom handler to your service object ***
// Set the Custom Handler to to your aPort object with this code snippet. Remeber that IoDHandler1.java is a custom java file.
BindingProvider bindingProvider = (BindingProvider) aIoDPort;
Binding aBinding = bindingProvider.getBinding();
List<Handler> allHandlers = aBinding.getHandlerChain();
allHandlers.add(new IoDHandler1());
aBinding.setHandlerChain(allHandlers);
**** Code snippet in Custom Handler1 class *****
import javax.xml.namespace.QName;
import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPMessageContext;
import javax.xml.soap.*;
public boolean handleMessage(SOAPMessageContext messageContext) {
Boolean outboundProperty = (Boolean) messageContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
if (outboundProperty.booleanValue()) {
System.out.println("IoDHandler1::handleMessage() -> Outbound Message");
try {
SOAPMessage soapMessage = messageContext.getMessage();
File aFile = new File("webServiceRequest.xml");
FileOutputStream aFOS = new FileOutputStream(aFile);
soapMessage.writeTo(aFOS);
} catch (Exception e) {
System.out.println("IoDHandler1::handleMessage() -> Inside CATCH Error Block -> IGNORE FOR NOW AND CONTINUE...");
e.printStackTrace();
} else {
// You can write similar code snippet to out Response xml also in this section...
System.out.println("IoDHandler1::handleMessage() -> Inbound Message");
//System.out.println("IoDHandler1::handleMessage() -> Response: " + messageContext.getMessage().toString());
return true;
HTH
Ravi Jegga -
Create WSDL from SOAP request, response and endpoint URL
We have a program that does not create WSDL for us but we do have a SOAP request, response XML file and the endpoint URL as well.
How can I create WSDL file from these?
If that is not possible, how can I create a Java web service client (JEE 5.0) when I have only the SOAP request and response XML and the endpoint URL? Some tutorial or any explanation to point me to the right direction would be highly appreciated.
Thank you very much,
GentiThe endpoint is:
http://servername/appname/service/rpcrouter
and we have SOAP request and repsonse that we can build from the application but also the documentation that is provided
The documentation says about the web service:
Built on top of a pre-Axis version of Apache SOAP
No WSDL support
Uses literal encoding for Web Service calls
Adding WSDL at the end of the endpoint does nothing at this point.
Thank you for the reply though, -
How to implement request/response domain in JMS
hi friends,
I need help regarding implementing request/response domain
in jms.please help me.See the TopicRequestor and QueueRequestor helper classes in the JMS API.
FWIW there's a POJO based request/response implementation using JMS here...
http://lingo.codehaus.org
you might find the source code useful as it does efficient request/response in a highly concurrent way using JMS under the covers.
James
http://logicblaze.com/ -
Generate spool request and PDF
Hello Friends,
I have the below requirement in Scripts.
I need to generate spool request and also download the form as pdf simultaneously.
I can able to generate spool request and able to download as PDF separately, but I want to do both in a single open_form is it possible?
Regards.
Krishna.Copy and Paste following code in a Z program type executable:
REPORT ZRSTXPDFT4 LINE-SIZE 80.
Read spool job contents (OTF or ABAP list) and convert
to PDF, download PDF
B20K8A0IKH replace WS_DOWNLOAD with GUI_DOWNLOAD
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-015.
SELECTION-SCREEN SKIP.
PARAMETERS:
SPOOLNO LIKE TSP01-RQIDENT.
SELECTION-SCREEN SKIP.
PARAMETERS : DOWNLOAD AS CHECKBOX DEFAULT 'X',
P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\temp\file.pdf' NO-DISPLAY."#EC NOTEXT
SELECTION-SCREEN END OF BLOCK B.
DATA OTF LIKE ITCOO OCCURS 100 WITH HEADER LINE.
DATA CANCEL.
DATA PDF LIKE TLINE OCCURS 100 WITH HEADER LINE.
DATA DOCTAB LIKE DOCS OCCURS 1 WITH HEADER LINE.
DATA: NUMBYTES TYPE I,
ARC_IDX LIKE TOA_DARA,
PDFSPOOLID LIKE TSP01-RQIDENT,
JOBNAME LIKE TBTCJOB-JOBNAME,
JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
IS_OTF.
DATA: CLIENT LIKE TST01-DCLIENT,
NAME LIKE TST01-DNAME,
OBJTYPE LIKE RSTSTYPE-TYPE,
TYPE LIKE RSTSTYPE-TYPE.
TABLES: TSP01.
DATA : RETFIELD TYPE DFIES-FIELDNAME.
DATA : SPOOL TYPE HELP_INFO-DYNPROFLD.
DATA : BEGIN OF ITAB OCCURS 0,
SPOOL TYPE TSP01-RQIDENT,
END OF ITAB.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SPOOLNO.
RETFIELD = SPOOLNO.
SPOOL = 'SPOOLNO'.
SELECT RQIDENT FROM TSP01 INTO TABLE ITAB."#EC CI_NOWHERE
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = RETFIELD
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = SPOOL
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = SY-CPROG
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = ITAB[]
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
START-OF-SELECTION.
SELECT SINGLE * FROM TSP01 WHERE RQIDENT = SPOOLNO.
IF SY-SUBRC <> 0.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Spoolauftrag existiert nicht'(003).
EXIT.
ENDIF.
CLIENT = TSP01-RQCLIENT.
NAME = TSP01-RQO1NAME.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
AUTHORITY = 'SP01'
CLIENT = CLIENT
NAME = NAME
PART = 1
IMPORTING
CHARCO =
CREATER =
CREDATE =
DELDATE =
MAX_CREDATE =
MAX_DELDATE =
NON_UNIQ =
NOOF_PARTS =
RECTYP =
SIZE =
STOTYP =
TYPE = TYPE
OBJTYPE = OBJTYPE
EXCEPTIONS
FB_ERROR = 1
FB_RSTS_OTHER = 2
NO_OBJECT = 3
NO_PERMISSION = 4.
IF OBJTYPE(3) = 'OTF'.
IS_OTF = 'X'.
ELSE.
IS_OTF = SPACE.
ENDIF.
IF IS_OTF = 'X'.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = SPOOLNO
NO_DIALOG = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = NUMBYTES
PDF_SPOOLID = PDFSPOOLID
OTF_PAGECOUNT =
BTC_JOBNAME = JOBNAME
BTC_JOBCOUNT = JOBCOUNT
TABLES
PDF = PDF
EXCEPTIONS
ERR_NO_OTF_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DSTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11.
CASE SY-SUBRC.
WHEN 0.
PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
'Funktion CONVERT_OTFSPOOLJOB_2_PDF erfolgreich'(001).
WHEN 1.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Kein OTF- und kein ABAP-Spoolauftrag'(002).
EXIT.
WHEN 2.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Spoolauftrag existiert nicht'(003).
EXIT.
WHEN 3.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Keine Berechtigung zum Lesen Spoolauftrag'(004).
EXIT.
WHEN OTHERS.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Fehler bei Funktion CONVERT_OTFSPOOLJOB_2_PDF'(005).
EXIT.
ENDCASE.
ELSE.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = SPOOLNO
NO_DIALOG = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = NUMBYTES
PDF_SPOOLID = PDFSPOOLID
LIST_PAGECOUNT =
BTC_JOBNAME = JOBNAME
BTC_JOBCOUNT = JOBCOUNT
TABLES
PDF = PDF
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11.
CASE SY-SUBRC.
WHEN 0.
PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
'Funktion CONVERT_ABAPSPOOLJOB_2_PDF erfolgreich'(006).
WHEN 1.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Kein OTF- und kein ABAP-Spoolauftrag'(002).
EXIT.
WHEN 2.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Spoolauftrag existiert nicht'(003).
EXIT.
WHEN 3.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Keine Berechtigung zum Lesen Spoolauftrag'(004).
EXIT.
WHEN OTHERS.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Fehler bei Funktion CONVERT_ABAPSPOOLJOB_2_PDF'(007).
EXIT.
ENDCASE.
ENDIF.
download PDF file ***********
CHECK DOWNLOAD = 'X'.
IF NOT ( JOBNAME IS INITIAL ).
PERFORM BD_TEXTBOX_VAR2_MSG(RSTXPDFT) USING 80
'Konvertierung per Hintergrundjob'(008)
JOBNAME
JOBCOUNT.
EXIT.
ENDIF.
PERFORM DOWNLOAD_W_EXT(RSTXPDFT) TABLES PDF
USING P_FILE
'.pdf'
'BIN'
NUMBYTES
CANCEL.
IF CANCEL = SPACE.
DATA: S(80).
S = NUMBYTES. CONDENSE S.
CONCATENATE S 'Bytes heruntergeladen in Datei'(009)
INTO S SEPARATED BY SPACE.
PERFORM BD_TEXTBOX_VAR1_MSG(RSTXPDFT) USING 80
S
P_FILE.
ENDIF.
Regards,
Jeet K Bhatt -
JMS Request/Response example
Hi
I am trying to implement a JMS Request/Response example on glassfish, but i am not getting the correct behaviour.
My code is below. I am sending a message to a queue and adding the setJMSReplyTo another queue. I call the recv.receive(10000); and wait for the messages to be received. But this call blocks the current thread and the MDB that i orginally sent the message to only gets executed after the recv.receive(10000); has timed out after 10 seconds.
Can someone confirm that my code is correct or am i doing something wrong?
Connection connection = null;
Session session = null;
String text = "hello";
try {
System.out.println("Sending " + text);
connection = searchDestFactory.createConnection();
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer messageProducer = session.createProducer(searchDest);
TextMessage tm = session.createTextMessage();
tm.setText(text);
tm.setJMSReplyTo(destQueue);
messageProducer.send(tm);
System.out.println("Sent " + text);
MessageConsumer recv = session.createConsumer(destQueue);
connection.start();
Message m = recv.receive(10000);
tm = (TextMessage) m;
if(tm != null) System.out.println(tm.getText());
else System.out.println("No message replied");
} catch (JMSException ex) {
System.out.println(ex);
Thanks Glen
Edited by: glen_ on Jun 16, 2008 6:13 AM
Edited by: glen_ on Jun 16, 2008 6:13 AM
Edited by: glen_ on Jun 16, 2008 6:14 AMGlen,
I have never attempted to use the messaging service the way you have, namely a single instance as both sender and receiver, but I noticed that you do send the message before you register your Consumer. My first and easiest suggestion would be to simply move your consumer block (I would move both lines) above the producer block and try again.
If that attempt fails, I would implement a MessageListener, once again before the producer block and allow it to handle received messages (no need for recv.receive(10000);)
Example:
public class QueueMessageListener implements MessageListener {
public void onMessage(Message message) {
try {
System.out.println(String.format("From Glassfish: %s received a %s of type %s.", m_Queue.getQueueName(), message.getClass().getName(), message.getJMSType()));
System.out.println(printJMSMessage(message));
} catch (JMSException ex) {
//handle message here
}and somewhere before the producer block:
m_msgListener = new QueueMessageListener();
m_msgConsumer = m_Session.createConsumer(m_Queue);
m_msgConsumer.setMessageListener(m_msgListener);
m_Connection.start();I feel like I've done my good dead for the day :)
-Jerome BG -
Generating soap message from given WSDL dynamically.
Hi,
I want to write code which can generate SOAP request message from given WSDL.
Any Libraries which is already doing this work so that i can extend them and implement my work on top of it.
I saw one similar thing called SOAPUI. But it is a desktop application. I want the similar thing as a library so that i can extend it
Thanks
mchepuriI think that you can use the soapui libraries (a .jar file) and you can generate a soap message for a given wsdl....
but you cannot know the types of the "parameters" ... the library puts "?" where you have to put a value to send.... -
I have been given an xsd file and asked to create a web service whose request/response is based on this provided xsd.
and the requirement is to have request/response of web service in xml doc. This complete XML cannot be a sent as string.
So, please let me know how to acheive this. i.e how to inject the required xml structure in the web service response.
Edited by: jumst on Nov 2, 2009 2:58 AMjumst wrote:
how would i pass on the request on to web service -From jaxb classes i can send the resquest in an xml doc to the web service? or how? and likewise the result ftom web service to jaxb classes?Answer of your question is XML Marshaling and Unmarshalling will be used for the above purpose.
The Java Architecture for XML Binding (JAXB) provides a fast and convenient way to bind between XML schemas and Java representations, making it easy for Java developers to incorporate XML data and processing functions in Java applications. As part of this process, JAXB provides methods for unmarshalling XML instance documents into Java content trees, and then marshalling Java content trees back into XML instance documents. JAXB also provides a way to generate XML schema from Java objects.
-- From [Java EE 5 Tutorial - Binding between XML Schema and Java Classes|http://java.sun.com/javaee/5/docs/tutorial/doc/bnazf.html]
Other Ref:
[JAXB Architecture|http://java.sun.com/javaee/5/docs/tutorial/doc/bnazg.html]
[NetBeans.org - Binding WSDL to Java with JAXB|http://www.netbeans.org/kb/docs/websvc/jaxb.html]
JAX-WS Client App JAX_WS Server App
JAS-WS Web Service
Consume JAX-WS Web <-------------------------- Deployed here
Service here using WSDL
of the deployed Web
Service. This is JAX-WS
Client with all proxy and
schema(JAXB) classes.
Client sends request to
server with JAXB
classes. At the end JAX-WS
Client proxy classes will
marshal request to XML
and send to server. --------------------------> On request arrival JAX-WS Server
classes will unmarshal incoming
XML Request to JAXB Classes and
invoke web service and web method.
As web service response server
prepares response using JAXB
classes,and sends back to client.
JAX-WS Web Service will marshal
the response to XML and sends to
Client receives XML response <-------------------------- client.
and JAX-WS client proxy
classes will unmarshal the
response to JAXB classes.
Client app. will use these
as response.Developing web service with JAX-WS, Server and client will do marshaling and unmarshaling of SOAP XML requests and response for you.
Just go through tutorial given in my previous and current post. Use any good IDE to develop, I prefer NetBeans first and then Eclipse.
Below two links will help you to build and consume a web service using NetBenas IDE.
[Getting Started with JAX-WS Web Services|http://www.netbeans.org/kb/docs/websvc/jax-ws.html]
[Advanced Web Service Interoperability|http://www.netbeans.org/kb/docs/websvc/wsit.html]
Disclaimer: I am not an professional technical author so please forgive my English and Grammar.+ *:-))*
*Cheers,
typurohit* (Tejas Purohit) -
I can not create a JCA Service (Request / Response)
Hi
I need to generate a JCA Service (Request / Response) to call a MBF that exists in JDE.
I install Oracle Applications Adapters 11.1.1.3.0 in Oracle SOA Suite 11.1.1.4.0 and follow the Installation Guide and User Guide for applications adapters.
I can view the Business Functions that I packaged with Genjava but when I try to Generate a JCA Service (Request / Response) does not generate the expected files.
The machine on which I have installed the adapters is different from the machine where it was installed JDE
The first warning message appears when i connect to the target:
ADVERTENCIA: Unable to successfully register object with name 'jde:instanceName=*unknown.syworksoa*,metricName=jdenet_connection_manager,metricType=runtime.
javax.management.RuntimeMBeanException: RuntimeException thrown in preRegister method
Note: sywork-soa is the machine on which I have installed the adapters.
The second message appears when i try to generate the JCA Service from a MFB in application explorer.
java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:33)
at com.iwaysoftware.af.container.tools.wsdl.oracle.WSDLGenerator.getType
Definition(WSDLGenerator.java:546)
at com.iwaysoftware.af.container.tools.wsdl.oracle.WSDLGenerator.addRequ
estResponseElements(WSDLGenerator.java:220)
at com.iwaysoftware.af.container.tools.wsdl.oracle.WSDLGenerator.createW
SDL(WSDLGenerator.java:275)
at com.iwaysoftware.af.container.tools.wsdl.oracle.WSDLGenerator.getWSDL
Document(WSDLGenerator.java:199)
at com.iwaysoftware.af.container.tools.wsdl.oracle.IWayWSILBrowser.gener
ateIWayWSDL(IWayWSILBrowser.java:130)
at com.iwaysoftware.af.container.OracleAEManager.generateWSDL(OracleAEMa
nager.java:83)
at com.iwaysoftware.af.container.OracleAEManager.generateWSDL(OracleAEMa
nager.java:64)
at com.iwaysoftware.af.container.ae.AEComponentMessage.buildEXPORTWSDL(A
EComponentMessage.java:182)
at com.iwaysoftware.af.container.ae.AEComponentMessage.build(AEComponent
Message.java:86)
at com.iwaysoftware.af.container.ae.AEComponentMessage.<init>(AEComponen
tMessage.java:58)
at com.iwaysoftware.af.container.AEManager.dispatch(AEManager.java:134)
at com.iwaysoftware.af.container.IWAFContainer.dispatchAERequest(IWAFCon
tainer.java:809)
at com.ibi.afjca.cci.IWAFInteraction.execIWAE(IWAFInteraction.java:279)
at com.ibi.afjca.cci.IWAFInteraction.exec(IWAFInteraction.java:164)
at com.ibi.afjca.cci.IWAFInteraction.execute(IWAFInteraction.java:98)
at com.iwaysoftware.iwae.common.JCATransport.execute(JCATransport.java:1
66)
at com.iwaysoftware.iwae.common.AdapterClient.generateWSDL(AdapterClient
.java:437)
at com.ibi.bse.gui.ExportWSDLDialog.saveWSDL(ExportWSDLDialog.java:502)
at com.ibi.bse.gui.ExportWSDLDialog.okButtonActionPerformed(ExportWSDLDi
alog.java:416)
at com.ibi.bse.gui.ExportWSDLDialog.access$000(ExportWSDLDialog.java:29)
at com.ibi.bse.gui.ExportWSDLDialog$2.actionPerformed(ExportWSDLDialog.j
ava:387)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:19
95)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:387)
any help you can give me I am very grateful
Carlos Andres Gonzalez.I have tried to create an account via ePrintCenter and it seems that the published application has several flaws in interpreting the provided input.
1) In the Filed for last Name I enter my last name, which consist of only Alph Characters. The form however thinks that there is some sort of special character and rejects my Input.
2) E-Mail address. is not identical; OK, so I do a quick OCR on the E-Mail and guess what they are identical. Again the form Fails to recognize this.
3) Enter a password (2 Fields) and a third is displayed which is marked as "*required" but is not labeled as to what the required info could possibly be. Or is it a 3 password confirmation box, who knows.
All I know is that a simple registration is a major pain with this HP site.
Any Help as to how to alleviate this would of course be greatly appreciated. -
Hey,
In a BSP / JSP application, it is possible to retrieve and set the runtime data (http request and response). For Example:
response.setContentType("application/x-suvaagent;charset=iso-8859-1");
response.setHeader("Cache-Control", "public");
response.getWriter().print("<Request>");
response.getWriter().print("</Request>");
Is it possible to do this in a WebDynpro (ABAP) Application?
The requirement is to construct a file using http response method. This file contains parameters like business data etc. The file type is already registered as a MIME type which is associated with a standalone program.
When sending the http response, the file will be filled out with needed data and the associated program will be called using the data in the file.
I haven't found out how to do this in web dynpro application, since we use WD4A in our project.
Thanks and Regards,
LiangIn Web Dynpro you do not have direct access to the Request or Response object. This is part of the design of the abstracted rendering and makes things like the SmartClient and the AJAX based Delta Rendering possible.
In Web Dynpro you should use the FileDownload UI element or the CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a8d95673b12fe2e10000000a42189d/frameset.htm
If you want more control over the response object for a download then I might suggest that you can create a cached response object, place it into the ICM cache and generate a unique URL for it. You can then fire a navigation plug or a LinkToURL to go to that cached response object. -
XML Namespace in WebService Request/Response
Hi all,
I have a question regarding xml namespace usage in wsdl and the corresponding request/response messages.
I have already browsed quite some articles about xml namespaces as well as some forum threads, but I am still not sure.
I have the following part of a wsdl document (generated by Integration Directory), defining a targetnamespace.
u2026
<wsdl:types>
<xsd:schema targetNamespace="http://www.dorma.com/sap/xi/finance"
xmlns="http://www.dorma.com/sap/xi/finance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="DebtorGetDetailResponse" type="Z_BAPI_DEBTOR_GETDETAIL_Response"></xsd:element>
u2026
<xsd:complexType name="Z_BAPI_DEBTOR_GETDETAIL_Response">
<xsd:sequence>
<xsd:element name="DEBITOR_COMPANY_DETAIL" type="BAPI1007_5" minOccurs="0">
</xsd:element> u2026
</xsd:sequence>
</xsd:complexType>
u2026
</xsd:schema>
u2026
</wsdl:types>
u2026
In my understanding, all types defined in the schema section of a wsdl document will be in the targetnamespace, if defined.
Therefore the element DEBITOR_COMPANY_DETAIL would be in the namesapce
http://www.dorma.com/sap/xi/finance
However, the ABAP proxy generates a response message like follows,
where only the root element is in this namespace and the child elements are in the global namespace:
<?xml version="1.0" encoding="utf-8"?>
<ns1:DebtorGetDetailResponse xmlns:ns1="http://www.dorma.com/sap/xi/finance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DEBITOR_COMPANY_DETAIL>
u2026
</DEBITOR_COMPANY_DETAIL>
u2026
</ns1:DebtorGetDetailResponse>
Do I have a wrong understand of the wsdl (xml schema) or is this an erroneous behavior?
The problem is that some 3rd-party software web service module does not accept
the response message as not complient with the respective wsdl document.
Any input is appreciated.
Thanks
Hans
Edited by: Hans-Jürgen Schwippert on Oct 1, 2008 12:02 PMI have the same problem. I am trying to connect to a webservice running on IBM websphere but it doesn't accept the xml in my request. It appears to be the same namespace issue.
Did you ever find a solution for this?
Is it a valid webservice call if you omit the namespace for an element or is this a bug in the Adaptive WS implementation?
Web Dynpro web service model generated request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
<enableSession>true</enableSession>
</sapsess:Session>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
look between these lines -
<ns1:tamKontrolleraKontoLastAnrop xmlns:ns1="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
<AnvandarNamn>30039647</AnvandarNamn>
</ns1:tamKontrolleraKontoLastAnrop>
look between these lines -
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
As you can see the tag
<AnvandarNamn>30039647</AnvandarNamn>
is missing a namespace.
It should be
<ns1:AnvandarNamn>30039647</ns1:AnvandarNamn>
Using a third part tool called Soapui i generate this request that works:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tam="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
<soapenv:Header/>
<soapenv:Body>
<tam:tamKontrolleraKontoLastAnrop>
<tam:AnvandarNamn>30039647</tam:AnvandarNamn>
</tam:tamKontrolleraKontoLastAnrop>
</soapenv:Body>
</soapenv:Envelope> -
HTTP request/response object not thread safe.
According to the serlvet spec. Http Request/Response
are not thread safe. Quoting from the Spec:
" Implementations of the request and response objects are not guaranteed to be thread safe. This means that they should only be used within the scope of the request handling thread. References to the request and response objects must not be given to objects executing in other threads as the resulting behavior may be nondeterministic."
This has prompt me to ask the following question.
For Example I have a servlet which does the following
request.setAttribute("myVar","Hello");
The request and response is dispatched(using RequestDispatch.include(request,response)) to another
servlet which retrieve this attribute i.e request.getAttribute("myVar");
Is this safe?
The Spec only said "The Container Provider must ensure that the dispatch of the request to a target
servlet occurs in the same thread of the same VM as the original request." I take this meaning that the targeting servlet does not have to run in the same thread(only dispatch), otherwise it would be safe.To put it another way, you can only have onle thing working on a request at a time. For instance, the ServletContext is available to all servlets running on a server. If you tried to save a particular request to the ServletContext, it would potentially be available to many concurrently running servlets. They could all change whatever in it at the same time. Each servlet is in its own running thread. Hope that helps some.
-
OSB with request response MQ business service
Hi,
We have OSB webservice whice interacts with MQ via business service. We need to send the request to MQ request queue and get the response from the response queue.
For this, we have configured a business with MQ transport, request-response is enabled, message id is set for the correlation, auto generate correlation value is chosen.
The business service sends the message but unable receive the response from the response queue. Failing with the error message like
The invocation resulted in an error: [WliSbTransports:381918]Failed to receive response, within the configured timeout, for request message with id 42454BD3E5F7647914544E793F9F0000013EC9DF03918057 and correlation id 42454BD3E5F7647914544E793F9F0000013EC9DF03918057.
But we checked with the end system, the response is sent tot he response queue in no time. We also increased the time out but still same issue.
We noticed that if we dont send the message id, we are getting the response but not response of the request sent but some other response.
Please suggest what needs to be done to fix the issue.Open your business service and navigate to HTTP Transport configuration page and check what is the http type is enabled.
Look to me its with GET method, change it to POST and re-try.
If the above solution is not helping, try to check the Follow HTTP redirects check box below the Advanced Setting in same page.
Thanks,
Vijay -
Blocking Request/Response model
Hi everyone !
I'm starting to write a JMS application and I'm having some doubt about the request/response model enabled by the replyTo() method and CorrelationID field. As far is I know JMS is intended to let the client be free from the server's response by posting it's message on the queue and start doing some other work. But supposing the client needs a response from the server(a MDB) after the processing of the message I wonder how would him receive this response, assuming there is a second queue for posting the response messages. Simply using the MessageConsumer.receive() the client will be blocked, killing all the purpose of the model(even with timeout). So I wonder, should I create a second MDB just to handle the response queue ? This would left me with an RPC message producer, a MDB Message consumer (of the request message), and a MDB Message consumer (on the response queue). Is this a normal approach or is there something better ???Simply using the MessageConsumer.receive() the client will be blocked, killing all the purpose of the model(even with timeout).
You have to send the message and wait for the response in two separate transactions. For example:
// Start create and send transaction
ctx.getUserTransaction().begin();
connection = connectionFactory.createQueueConnection();
connection.start();
session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
final Message request = // create message
final Queue tempQueue = session.createTemporaryQueue();
request.setJMSReplyTo(tempQueue);
final QueueSender sender = session.createSender(destination);
sender.send(request);
ctx.getUserTransaction().commit();
// End create and send transaction
// Start receive transaction
ctx.getUserTransaction().begin();
final QueueReceiver receiver = session.createReceiver(tempQueue);
final Message response = receiver.receive(TIMEOUT);
ctx.getUserTransaction().commit();
// End receive transaction
// process response
Maybe you are looking for
-
Any limit to number of secondary ip addresses?
Hi, Is there any limit to the number of secondary ip addresses on an interface of a router? I just took over an existing live system. The previous engineer configured secondary ip addresses on a single physical interface. Currently, there are 1 main
-
I've have my iPhone 4s for about a year now, and up until when the iOS 7 update was released, I never had any problems with it. I still haven't updated my phone, though. I prefer the interface that comes with iOS 6, and in my opinion it's easier to
-
How can I edit text in pdf?
newbie here to editing text in a pdf. I make a document in InDesign and exported it into a pdf. I tried to change the text in the pdf, using the touch up tool but it won't let me change it. What am I doing wrong?
-
Improvements for IWork for iOS
I write to suggest improving your IWork for ios application. The applications are very good, but lacks some important features that would help iPad -Iphone users to work better. These absences are: NUMBERS: - filters - sort by more criteria - cat
-
Hi, I am looking for the BAPI or ABAP to Create Vendor Price List in SAP but could find any yet. Can anyone help me with the example? Thank you in advance, Sunny