Probelm receive xml with XMLSocket

Hi! I'm doing a socket program which will send and receive
data from a server. The server runs perfectly fine with other
socket client (vb, java etc).
But I have problem receive data using XMLSocket in Flash. It
send successfully, skip the receiving data and then finally go to
"history" frame.
Please see the attached code for more information. Thank you
very much!!

hi,
What i understand from your scenario is XI> BC> SAP system.
1)XI-->BC
U need to configure XI's-BCAdapeter(as receiver).
in URL specify teh follwoing :
http://<hostname>:5555/invoke/folder1.folder2./<service-to-be invoked>
together with the username and password.
2) BC--> SAP
To invoke an IDoc, go to Routing rules and specify the sender, receiver, and the Message Type(IDoc name). In the next page, specify the name of the flow service to be created. and the Flowservice to be invoked whenever a message comes in.
Hope this gives you some input.
Regards,
Siva Maranani

Similar Messages

  • Receive XML with Business Connector, convert to IDoc

    Hi all,
    I am trying to receive XML files with SAP Business Connector (4.7) and convert them to IDOC and then forward the IDoc file to SAP System.
    At the moment, I have to do the testing for this.
    I don't know how to send the XML file to the special port (5555) of the server. I read that there are serveral possibilities like http, mail, ftp. Can anybody give me an advice how this works?
    Next problem is to get the created IDoc file to the SAP system. The SAP server is added in the SAP Business Connector and the connection works.
    I would be very pleased if anybody could help me.
    Thanks in advance!
    Kai

    hi,
    What i understand from your scenario is XI> BC> SAP system.
    1)XI-->BC
    U need to configure XI's-BCAdapeter(as receiver).
    in URL specify teh follwoing :
    http://<hostname>:5555/invoke/folder1.folder2./<service-to-be invoked>
    together with the username and password.
    2) BC--> SAP
    To invoke an IDoc, go to Routing rules and specify the sender, receiver, and the Message Type(IDoc name). In the next page, specify the name of the flow service to be created. and the Flowservice to be invoked whenever a message comes in.
    Hope this gives you some input.
    Regards,
    Siva Maranani

  • PI 7.11 - Sync HTTP receiver adapter with response XML file

    Hi
    We have a File to HTTP scenario in which we need a sync HTTP interface. We send a file to the HTTP address and receive a XML acknowledge. As I read in this forum: sync HTTP interfaces are not possible with the "standard" HTTP adapter. So I found an entry which recommended to use the SOAP adapter instead.
    I configured it:
    - Do Not Use SOAP envelope
    - modules: RequestResponseBeans, CallSapAdapter, ResponseOneWayBean
    If i use this scenario, i get following error in the RWB - Message Display Tool:
    Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageId() of an object loaded from local variable 'message1'.
    I testet this scenario using CURL and it worked properly. Should this kind of scenario work with the SOAP adapter or do I need to buy/develop an own adapter? Is in NW7.3 possible to configure sync HTTP scenarios?
    Thanks in advance
    Michael

    Hi
    actually i use a simple HTTP receiver CC with the setting "XI Payload in HTTP Body" to send a XML datafile to a webpage (java servlet). This part works fine by now. But, this servlet would also send back a status information to the state of the received datafile, which I like to catch.
    e.g. HTTP response from the servlet (catched using CURL):
    HTTP/1.0 403 Forbidden
    Server: Apache-Coyote/1.1
    X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA (build: SVNTag=JBPAPP_4_3_0_GA date=200801031548)/Tomcat-5.5
    Set-Cookie: JSESSIONID=OALHMomjR9TVgIATi8SrPQ**.ajp13_ls_1; Path=/ls
    Content-Type: text/xml
    Date: Tue, 06 Mar 2012 16:19:56 GMT
    X-Cache: MISS from proxy.xxxx.com
    Via: 1.0 proxy.xxxx.com:xxxx (http_scan/4.0.2.6.19)
    Proxy-Connection: close
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE transportordersfromls [ <!ELEMENT transportordersfromls (userid, clntid, msgid, (transportorderfromls+ | error))> <!ATTLIST transportordersfromls vers CDATA #REQUIRED> <!ELEMENT userid (#PCDATA)> <!ELEMENT clntid (#PCDATA)> <!ELEMENT msgid (#PCDATA)> <!ELEMENT transportorderfromls (refid, status)> <!ELEMENT refid (#PCDATA)> <!ELEMENT status (ok | error+)> <!ELEMENT ok EMPTY> <!ELEMENT error EMPTY> <!ATTLIST error reason (XMLError | SystemNotAvailable | ApplicationError | OTHER) #REQUIRED message CDATA #REQUIRED> ]>
    <transportordersfromls vers="1.0">
        <userid/>
        <clntid>XXXXX</clntid>
        <msgid>0</msgid>
        <error reason="OTHER" message="Access denied"/>
    </transportordersfromls>
    Michael

  • Output XML with a default namespace using XQuery

    I'm having a problem with namespaces in an XQuery within ALSB.
    We receive XML from a file which doesn't have any namespace and have to transform it into a different structure, giving it a default namespace such as below:
    Input XML
    <inputRoot>
         <inputAccountName>Joe Bloggs</inputAccountName>
         <inputAccountNumber>10938393</inputAccountNumber>
    </inputRoot>
    Desired output XML
    <outputRoot xmlns="http://www.example.org/outputSchema">
         <outputAccounts>
              <outputAccountName>Joe Bloggs</outputAccountName>
              <outputAccountNumber>10938393</outputAccountNumber>
         </outputAccounts>
    </outputRoot>
    When I attempt to do this using XQuery mapper tool, I end up with a namespace prefix on the outputRoot. The XQuery and result follows:
    XQuery
    declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
    declare namespace ns0 = "http://www.example.org/outputSchema";
    declare function xf:test($inputRoot1 as element(inputRoot))
    as element(ns0:outputRoot) {
    <ns0:outputRoot>
    <outputAccounts>
    <outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
    <outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
    </outputAccounts>
    </ns0:outputRoot>
    declare variable $inputRoot1 as element(inputRoot) external;
    xf:test($inputRoot1)
    Result
    <ns0:outputRoot xmlns:ns0="http://www.example.org/outputSchema">
         <outputAccounts>
              <outputAccountName>inputAccountName_1</outputAccountName>
              <outputAccountNumber>inputAccountNumber_1</outputAccountNumber>
         </outputAccounts>
    </ns0:outputRoot>
    How can I write the XQuery in such a way thay the namespace prefix isn't output? I've tried many different methods with no success. I can't declare a default element namespace because my input element doesn't have a namespace
    Thanks in advance

    I spoke too soon, it didn't work quite as perfectly as I'd thought :-) It turns out our client can't handle the xml with the namespace prefix but we've worked out the solution to return XML in the format we originally needed.
    Example below:
    XQuery
    declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
    declare default element namespace "http://www.example.org/outputSchema";
    declare namespace ns1 = ""
    declare function xf:test($inputRoot1 as element(ns1:inputRoot))
    as element(outputRoot) {
    <outputRoot>
    <outputAccounts>
    <outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
    <outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
    </outputAccounts>
    </outputRoot>
    declare variable $inputRoot1 as element(inputRoot) external;
    xf:test($inputRoot1)

  • How to receive XML from Flex HTTP POST

    Hi,
    We curreontly have a setup where we have a FLEX frontend send an XML through a HTTP POST and awaiting a response also in XML. On the backend this is handled relatively simply by a PHP script that basically does the following:
    read data (in XML)from FlEX HTTP POST into a new temp XML file.
    execute a c++ program with the XML file as one of the parameter.
    return the result to FLEX
    We have decided to move to BlazeDS for various reasons.
    Looking at the examples bundled with BlazeDS they have a jsp example that returns an XML result to FLEX so that part is fine. I am trying to find an example of JSP (or Servlet) that is able to read the XML data from FLEX and write it into a temp XML file. I would then try to use runtime.exec to invoke a local C++ program to process the XML file the result of which will be sent back to FLEX.
    Any help will be very much appreciated!

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I&#8217;d avoid calling an executable just to process XML &#8211;your<br />application server would provide enough support for reading and writing XML, no?<br />Also, if you&#8217;re only planning on working with XML then even BlazeDS might<br />be overkill because its focus is on sending strongly typed ActionScript data efficiently<br />to and from a client (it&#8217;s true that it does have a proxy service, but<br />that is not involved with processing the actual XML data).<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>How complex is your XML? Do you need to resolve ids and<br />references or can you parse it top down in a single pass? There are several<br />well known libraries in Java for dealing with XML &#8211; the choice depends on<br />how you need to interact with the XML. Most of them take an InputStream as a<br />source for reading XML and you can get the InputStream from the servlet<br />request. Googling should turn up numerous examples.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Pete<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><br /><br /><div><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> khwong<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Sunday, September 28, 2008 12:09 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> How to receive XML from Flex HTTP POST<o:p></o:p></span></p><br /><br /></div><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />khwong in <br><br /><br><br /><b>General Discussion</b> --<br><br />  How to receive XML from Flex HTTP POST<br><br /><br><br />Hi, <br><br /><br><br />We curreontly have a setup where we have a FLEX frontend send an XML through a<br />HTTP POST and awaiting a response also in XML. On the backend this is handled<br />relatively simply by a PHP script that basically does the following: <br><br /><br><br />read data (in XML)from FlEX HTTP POST into a new temp XML file. <br><br />execute a c++ program with the XML file as one of the parameter. <br><br />return the result to FLEX <br><br /><br><br />We have decided to move to BlazeDS for various reasons. <br><br /><br><br />Looking at the examples bundled with BlazeDS they have a jsp example that<br />returns an XML result to FLEX so that part is fine. I am trying to find an<br />example of JSP (or Servlet) that is able to read the XML data from FLEX and<br />write it into a temp XML file. I would then try to use runtime.exec to invoke a<br />local C++ program to process the XML file the result of which will be sent back<br />to FLEX. <br><br /><br><br />Any help will be very much appreciated! <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b69b23">How to receive XML from<br />Flex HTTP POST</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b69b23!folder=.3c061a83">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div><br /><br /></div>

  • JDBC Receiver Adapter with Native SQL String

    Hi experts
    I need to use a JDBC Receiver Adapter with Message Protocol of Native SQL String, but I don´t understand how to create my data type for XML Document Format. I studied the following example from the SAP Library,
    INSERT INTO tableName (column-name1, column-name2, column-name3) VALUES(u2018column-value1u2019, u2018column-value2u2019, u2018column-value3u2019)
    i´ll be very thankful of your recommendations.

    Another simple way is..
    Create receiver data structure like this....
    <StatementName>
    <anyName action=u201DSQL_DMLu201D>
    <access>INSERT INTO tableName (column-name1, column-name2, column-name3) VALUES('$column-value1$', '$column-value2$', '$column-value3$')
    </access>
    <key>
      <column-value1>value1</column-value1>
      <column-value2>value2<column-value2>
       <column-value3>value3<column-value3>
    </key>
    </anyName > 
    </StatementName>
    Rest are all same.

  • Input xml from output xml with reverse transformation

    I have the transformation and the output xml file. Is there any way I get the input message using the trasformation and output message with minor manual changes? Is there any tool for that?

    Hi Ragavalli,
    I understand that you want to archive the incoming message before map is applied. (Assuming map is not to be there on send port as not very clear about restrictions you have)
    There are two ways:
    1. Use of Custom pipeline component to archive message . You can find one at :http://biztalkarchiving.codeplex.com/
    2. The other option is to have
     Recieve port without map
     Two send port one  pointing to Archive folder  and other to temporary folder (intermediate)location
     Add both the send port to Send Port group. Have filter on it as BTS.PortName = ReceivePortName
     Create a receive port with temporary folder as receive location 
     Apply the inbound map on this port
    If map can be allowed on send port then
    1. Rec port without map
    2. Two send port, one without map other with map. 
    Thus original message will be saved by Send Port 1 and transformed by Send Port 2
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    Server : Scheduling Orchestration using Trigger Message

  • Receive xml as string from OSB and pass it to Bpel

    I was given xml and DTD by our external partners. I need to receive this xml, parse this and insert some of the
    values of the elements into DB.
    Question1:
    Since I don't have WSDL, can I receive xml in string and pass it on to OSB BS which calls Bpel process?
         If yes, how and can I get any example?
    How do I set up osb bs service to talk to bpel?
    I have installed oracle soa suite 10g with patch set 4. This runs with Oracle AS. I have my Bea weblogic 10.3 with OSB installed.
    Both the servers are running seperately.

    If I use
    string to xml --- fn-bea:inlinedXML()
    How do I extract a value of an element? When I log the xml that got extracted from a string, I only see the values of elements with no element names:
    eg: if incoming string format of xml is:
    <Customer>
    <name>aaa</name>
    <address>bb</address>
    </Customer>
    After fn-bea:inlinedXML($body)
    I see:
    aaa
    bbb
    in the log, but with no element names

  • Send PO via rfc XML with BC 4.7

    Hi Gurus,
    I have to send the Purchase Order to vendor via rfc XML with business connector 4.7. The vendor should receive the order via ebp XML. We are not using XI we use xCBL. SRM Server 5.5 Standalone.
    i use zbbp_PO_send_xml badi for this purpose.  We are able to send the data as rfc XML.  But the smartform attachment is not working.
    Can any one specify me the exact steps involved in this.
    Please reply asap as there is an urgency in the task.
    Points assured to helpful answers.
    Cheers,
    Lokesh

    We are getting a similar error -
    Any ideas on what parameters we need to pass or configure?
    JCO.ServerThread-1 [13:15:27:437]: [JNI-LAYER] RFC.incomingRequestHandler() before dispatchRequest("IDOC_INBOUND_ASYNCHRONOUS")
    JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.nativeConnect()                                          enter, [SUCCESS]
    JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.nativeConnect() before RfcOpenEx("CLIENT="110" USER="ALEWM1" PASSWD=********** LANG="EN" SYSNR="00" ASHOST="atlun02.celanese.com" R3NAME="atlun02.celanese.com" TRACE="1" TOUPPER="0"")
    JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.nativeConnect() after  RfcOpenEx("CLIENT="110" USER="ALEWM1" PASSWD=********** LANG="EN" SYSNR="00" ASHOST="atlun02.celanese.com" R3NAME="atlun02.celanese.com" TRACE="1" TOUPPER="0"") = 0
      with error: RFC_ERROR_PROGRAM No entry for 'atlun02.celanese.com' found in 'C:\WINDOWS\sapmsg.ini'
    JCO.ServerThread-1 [13:15:27:515]: [JAV-LAYER] JCO.PoolManager.releaseClient: Cannot release client equals null
    JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.incomingRequestHandler() caught the following exception: com.sap.mw.idoc.IDoc$Exception: (2) IDOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type "LOIPRO01" is unavailable.
    JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.incomingRequestHandler() Exception.message = "The meta data for the IDoc type "LOIPRO01" is unavailable."
    JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.abort()                                                  enter, [SUCCESS]
    JCO.ServerThread-1 [13:15:27:515]: [JNI-LAYER] RFC.abort() before RfcAbort(1,"The meta data for the IDoc type "LOIPRO01" is unavailable.")

  • Receiver mailadapter with mailpackage and attachment

    Hi there!!
    My scenario is as folows:
    I send via ABAP proxy an application XML and add additional plain text attachment to this. At the receiver side I use receiver mailadapter with mail-package. With my interface mapping I map application XML to mailpackage and use content-type text/HTML. I checked checkbox in adapter "keep attachments".
    Result is that the mail i receive contains 2 attachments (1 HTML file and 1 .txt file). However the main body of the e-mail contains the content of the plain text file. I want to have the content of the html to be the main body of the mail. I already tried to use payload swap been however without succes because it seems that in the adapter module chain when reaching the actual mail module: sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean the main payload is switched to the plain text attachment. Also changing the sequence in the module chain did not work.
    Any suggestions?
    Cheers,
    Emile

    When you want to use mail package to create an email with attachment, the whole email, body and attachment must be inside the tag content_type.
    Like in this blog:
    /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    In your scenario, you should uncheck the flag "mail package".
    Regards
    Stefan

  • Error in "---- RECEIVING XML ----", WL 6.1, sp 2  for Windows

    I have changed a few names and run the webservices/message example. The ConsumerClient.java
    when initially started has thrown exception regarding illegal character.
    The RECEIVING XML is generated by the server and, in case of ConsumerClient, all
    code is produced by wsgen utility. My guess is that the problem is caused by the
    line
    <FONT FACE=Helvetica><BR CLEAR=all>
    where quotes are missed.
    So, is this a bug in WL 6.1, sp 2 for Windows ? The output follows:
    ------------- RECEIVING XML -------------
    <definitions
    targetNamespace="urn:local"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:local"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema targetNamespace='urn:local'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    </schema>
    </types>
    <message name="receiveRequest">
    </message>
    <message name="receiveResponse">
    <part name="result" type="xsd:anyType" />
    </message>
    <portType name="dpsfGetWSPortType">
    <operation name="receive">
    <input message="tns:receiveRequest"/>
    <output message="tns:receiveResponse"/>
    </operation>
    </portType>
    <binding name="dpsfGetWSBinding" type="tns:dpsfGetWSPortType"><soap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="receive">
    <soap:operation soapAction="urn:receive"/>
    <input><soap:body use="encoded" namespace='urn:dpsfGetWS' encodingStyle="http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace='urn:dpsfGetWS' encodingStyle="http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/"/></output>
    </operation>
    </binding>
    <service name="dpsfGetWS"><documentation>todo</documentation><port name="dpsfGetWSPort"
    binding="tns:dpsfGetWSBinding"><soap:address location="http://localhost:7001/dpfswsGetInit/receiveMsg"/></port><
    /service></definitions>
    -------------- SENDING XML --------------
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.
    org/1999/XMLSchema-instance' xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:receive
    xmlns:ns0='urn:dpsfGetWS' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml
    http:/
    /schemas.xmlsoap.org/soap/encoding/'></ns0:receive></SOAP-ENV:Body></SOAP-ENV:Envelope>-------------
    RECEIVING XML -------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
    <HTML>
    <HEAD>
    <TITLE>Error 500--Internal Server Error</TITLE>
    <META NAME="GENERATOR" CONTENT="WebLogic htmlKona WebLogic Server 6.1 SP2 12/18/2001
    11:13:46 #154529 ">
    </HEAD>
    <BODY bgcolor="white" alink="#397F70" link="#640078" vlink="#DE7E00">
    <FONT FACE=Helvetica><BR CLEAR=all>
    <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
    <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 500--Internal Server Error</H2>
    </FONT></TD></TR>
    </TABLE>
    <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT
    FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext
    Transfer Protocol -- HTTP/
    1.1</i>:</H3>
    </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.5.1 500 Internal Server Error</H4>
    </FONT><P><FONT FACE="Courier New">The server encountered an unexpected condition
    which prevented it from fulfilling the request.</FONT></P>
    </FONT></TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    Scanner has tokens:
    [OPENTAGBEGIN]
    [NAME] (META)
    [NAME] (NAME)
    [CHARDATA] (GENERATOR)
    [NAME] (CONTENT)
    [CHARDATA] (WebLogic htmlKona WebLogic Server 6.1 SP2 12/18/2001
    11:13:46 #154529 )
    [TAGEND]
    [SPACE] (
    [CLOSETAGBEGIN]
    [NAME] (HEAD)
    [TAGEND]
    [SPACE] (
    [OPENTAGBEGIN]
    [NAME] (BODY)
    [NAME] (bgcolor)
    [CHARDATA] (white)
    [NAME] (alink)
    [CHARDATA] (#397F70)
    [NAME] (link)
    [CHARDATA] (#640078)
    [NAME] (vlink)
    [CHARDATA] (#DE7E00)
    [TAGEND]
    [SPACE] (
    [OPENTAGBEGIN]
    [NAME] (FONT)
    [NAME] (FACE)
    E7E00">
    <FONT FACE=e <-- bad character
    Exception in thread "main" Error at line:8 col:13 Line:8 ''' expected, got char[72]
    at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXElementFactory.java:60)
    at weblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:130)
    at weblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream.java:46)
    at weblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
    at weblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.java:258)
    at weblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.java:171)
    at weblogicx.xml.stream.XMLEventStreamBase.startElement(XMLEventStreamBase.java:164)
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:86)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:464)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:430)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at examples.webservices.message.ConsumerClient.main(ConsumerClient.java:57)
    Thank you.
    -Michael

    Hi Michael,
    Thanks a lot for such detailed description. You know, I've considered this bug
    until I've found out that it works OK for my case if I DO NOT change <destinationtype>
    setup from "topic" to "queue". Actually, I do care about it mostly from the consistency
    perspective. This a small fly in comparison to the BUG I've found next.
    Currently, I am contacting BEA Support with that regard. In short words, I've
    found that 1) if you build WS on the top of JMS Queue; 2) use the webservices.message.ConsumerClient
    from WL examples or similar; 3) run this Client several times closing the Client
    application after each run; 4) control how many consumers your JMS Queue has after
    each run - you will see that the number of active consumers becomes equal the
    number of your runs. That is, WS initiated by each ConsumerClient remains connected
    to the destination, i.e. the Queue, even when the real client - ConsumerClient
    - is dead already. This results in multiple consumers for the same JMS Queue,
    i.e. now the JMS decides which consumer would get the message from the queue,
    i.e. your ConsumerClient has a chance of never getting the message and wait forever.
    I believe, the WS engaged by ConsumerClient in this use-case MUST close JMS connection
    by itself or on command somehow.
    Hey, please tell me more about "Bavarian Hat Dance", I am not familiar with this
    dance.
    Sincerely,
    Michael
    "Michael Wooten" <[email protected]> wrote:
    >
    Hi Michael,
    (Hey my name is Michael too!)
    You are probably right that this is a bug in wsgen (not neccessarily
    WLS - wsgen
    != WLS)! I would try to remove all the output files generated by wsgen
    (i.e. ear
    file, jar file for EJB, directory used to build EJB, client.jar, etc),
    first.
    Be careful not to mistakenly remove the source files (i.e. build.xml,
    etc.), though.
    Then I would stop WLS (if it's not already stopped), and remove the .wl_temp_do_not_delete
    directory, under the applications directory of the domain (i.e. config/examples,
    etc) directory you are using. Don't worry - WLS will recreate this directory
    the
    next time it is started. Finally, I would make sure the build.xml had
    no "lingering
    references" to the queue stuff, and re-run wsgen. Also, make sure the
    information
    in the config.xml is accurate. Regardless of whether this "Bavarian Hat
    Dance"
    works or not, it's probably an "eight-legger" (or "six-legger")!
    Regards,
    Mike Wooten
    "Michael Poulin" <[email protected]> wrote:
    My further investigation has shown that this error comes if I set destinationtype="queue"
    in <messageservice /> in wsgen task ( in build.xml ). If destinationtype="topic"
    it works properly. The most confusing thing is that I have only theQueue
    configured
    in WL JMS server.
    This destinationtype="queue"/"topic" issue in my test-case appearesas
    an obvious
    BUG in WL Web Services, i.e. in wsgen.
    -Michael Poulin
    "Michael Poulin" <[email protected]> wrote:
    I have changed a few names and run the webservices/message example.The
    ConsumerClient.java
    when initially started has thrown exception regarding illegal character.
    The RECEIVING XML is generated by the server and, in case of ConsumerClient,
    all
    code is produced by wsgen utility. My guess is that the problem is
    caused
    by the
    line
    <FONT FACE=Helvetica><BR CLEAR=all>
    where quotes are missed.
    So, is this a bug in WL 6.1, sp 2 for Windows ? The output follows:
    ------------- RECEIVING XML -------------
    <definitions
    targetNamespace="urn:local"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:local"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema targetNamespace='urn:local'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    </schema>
    </types>
    <message name="receiveRequest">
    </message>
    <message name="receiveResponse">
    <part name="result" type="xsd:anyType" />
    </message>
    <portType name="dpsfGetWSPortType">
    <operation name="receive">
    <input message="tns:receiveRequest"/>
    <output message="tns:receiveResponse"/>
    </operation>
    </portType>
    <binding name="dpsfGetWSBinding" type="tns:dpsfGetWSPortType"><soap:binding
    style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="receive">
    <soap:operation soapAction="urn:receive"/>
    <input><soap:body use="encoded" namespace='urn:dpsfGetWS' encodingStyle="http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace='urn:dpsfGetWS' encodingStyle="http://xml.apache.org/xml-soap/literalxml
    http://schemas.xmlsoap.org/soap/encoding/"/></output>
    </operation>
    </binding>
    <service name="dpsfGetWS"><documentation>todo</documentation><portname="dpsfGetWSPort"
    binding="tns:dpsfGetWSBinding"><soap:address location="http://localhost:7001/dpfswsGetInit/receiveMsg"/></port><
    /service></definitions>
    -------------- SENDING XML --------------
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.
    org/1999/XMLSchema-instance' xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:receive
    xmlns:ns0='urn:dpsfGetWS' SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml
    http:/
    /schemas.xmlsoap.org/soap/encoding/'></ns0:receive></SOAP-ENV:Body></SOAP-ENV:Envelope>-------------
    RECEIVING XML -------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
    <HTML>
    <HEAD>
    <TITLE>Error 500--Internal Server Error</TITLE>
    <META NAME="GENERATOR" CONTENT="WebLogic htmlKona WebLogic Server 6.1
    SP2 12/18/2001
    11:13:46 #154529 ">
    </HEAD>
    <BODY bgcolor="white" alink="#397F70" link="#640078" vlink="#DE7E00">
    <FONT FACE=Helvetica><BR CLEAR=all>
    <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
    <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 500--Internal
    Server Error</H2>
    </FONT></TD></TR>
    </TABLE>
    <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100%
    BGCOLOR=white><FONT
    FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068
    <i>Hypertext
    Transfer Protocol -- HTTP/
    1.1</i>:</H3>
    </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.5.1 500 Internal Server
    Error</H4>
    </FONT><P><FONT FACE="Courier New">The server encountered an unexpected
    condition
    which prevented it from fulfilling the request.</FONT></P>
    </FONT></TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    Scanner has tokens:
    [OPENTAGBEGIN]
    [NAME] (META)
    [NAME] (NAME)
    [CHARDATA] (GENERATOR)
    [NAME] (CONTENT)
    [CHARDATA] (WebLogic htmlKona WebLogic Server 6.1 SP2
    12/18/2001
    11:13:46 #154529 )
    [TAGEND]
    [SPACE] (
    [CLOSETAGBEGIN]
    [NAME] (HEAD)
    [TAGEND]
    [SPACE] (
    [OPENTAGBEGIN]
    [NAME] (BODY)
    [NAME] (bgcolor)
    [CHARDATA] (white)
    [NAME] (alink)
    [CHARDATA] (#397F70)
    [NAME] (link)
    [CHARDATA] (#640078)
    [NAME] (vlink)
    [CHARDATA] (#DE7E00)
    [TAGEND]
    [SPACE] (
    [OPENTAGBEGIN]
    [NAME] (FONT)
    [NAME] (FACE)
    E7E00">
    <FONT FACE=e <-- bad character
    Exception in thread "main" Error at line:8 col:13 Line:8 ''' expected,
    got char[72]
    at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXElementFactory.java:60)
    at weblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:130)
    at weblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream.java:46)
    at weblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
    at weblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.java:258)
    at weblogicx.xml.stream.XMLEventStreamBase.hasStartElement(XMLEventStreamBase.java:171)
    at weblogicx.xml.stream.XMLEventStreamBase.startElement(XMLEventStreamBase.java:164)
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:86)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:464)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:430)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at examples.webservices.message.ConsumerClient.main(ConsumerClient.java:57)
    Thank you.
    -Michael

  • Will B2B Adapter receive operation with default triggers the SOA Composite

    Hi,
    Can any one provide me answers to this questions?
    *1. Will B2B Adapter receive operation having default protocol will trigger SOA Composite? if so how can we achieve it?*
    *2. will Listening channel with JMS protocol do EDI------XML translation? if so what are the configuration that need to be done?*
    *3. Will B2B Adapter receive operation listens messages from other protocols like File ,FTP ? if so what need to be done ?*

    1. Will B2B Adapter receive operation having default protocol will trigger SOA Composite? if so how can we achieve it?Yes, it can trigger SOA composite. First deploy the inbound B2B agreement with no channels selected under Host TP channels dropdown and then deploy your SOA composite which is referring to the deployed doc-def. Run an inbound test and you should be good to go.
    2. will Listening channel with JMS protocol do EDI------XML translation? if so what are the configuration that need to be done?Yes, you may translate native EDI to XML with JMS listening channel as well. Make sure that listening channel is not marked as internal and an inbound EDI agreement is deployed for corresponding EDI doc. Following custom JMS headers must be set so that B2B can identify the partner -
    FROM_PARTY
    TO_PARTY
    3. Will B2B Adapter receive operation listens messages from other protocols like File ,FTP ? if so what need to be done ?No. B2B adapter supports only three modes - JMS/AQ/Default (fabric), however you may use file/ftp adapter to receive files from B2B over file/ftp respectively.
    Regards,
    Anuj

  • XML with attributes?

    Hello
    I've got a table XYZ with the fields ABC and DEF. I want Oracle XE database to give me the following XML back:
    <ROWSET>
    <ROW ABC="..." DEF="..."/>
    <ROW ABC="..." DEF="..."/>
    </ROWSET>
    the fields as attributes. I know only how to get XML with elements but I need xml attributes. Does anybody know how this works with ODP.NET? I use the XmlCommandType property, r=ExecuteXmlReader() function and "doc.load(r)". In the past I got XML with attributes using Oracle9i R2, OO4O and MS Visual Basic 6. I set a property for each column.
    Regards
    Marcus Warm
    (Germany)
    [Oracle 10g Express Edition R2, Visual Studio 2005 VB, ADO.NET 2.0, Windows
    XP]
    <<also posted in de.comp.datenbanken.misc>>

    Hi
    In this case you have to change your Source structure and map the attrbute values to target and in receiver channel you can perform your content conversion.
    Regards
    Ramg
    Edited by: Ramkumar Ganesh on Apr 28, 2010 11:09 PM

  • I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. Some contacts have problems opening files sent by me using Mail too. This was never a problem on pre-Intel. A real Mac **** up !

    I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. And some contacts occasionally have problems opening files sent by me using Mail too. This was never a problem on pre-Intel Mac. A real Mac **** up ! Any ideas ?

    Can you drag and drop the attachments visible in the email to the Desktop OK or does that fail ?
    Re the sending: Are these recipients on Mac's or PC's as the file type could be an issue, if on Mac's then try setting the Mail Preferences Composing setting to Plain Text not Rich Text and see if that improves things.

  • I have a macPro 10.6.8. i have been receiving mail with the same date--March 14 and the same time--8:51am..I cannot correct:who knows the solution?

    I have a macPro 10.6.8. i have been receiving mail with the same date--March 14 and the same time--8:51am..I cannot correct:who knows the solution?
    Thank you.

    You may need to replace the Pram battery.

Maybe you are looking for