How to compress the soap msg?
hi, all
now we need to compress the soap msgs to improve the comm. speed, do u have some good ideas?
now I have solved this problem.Use GZIPOutputStream & GZIPInputStream to wrap the original underlying stream.
maybe it's not a good way.I am seeking more flexible and better method,because i found it hard to detect wheather a stream is comppressed or not.
Similar Messages
-
How to display the err msg in statusbar
Hi friends,
How to display the error msg (red color) in statusbar and other msg is green color in same report of the status bar .
Plz help any one.
Thanks in advance.Hi YUMKUMAR ,
You can use the below code.
Create a message class : ZMSSG or with any other name and use the below code.
IF SY-SUBRC NE 0 .
MESSAGE : E000(ZMSSG) WITH 'Data not available for this entry'.
ENDIF .
or
IF SY-SUBRC NE 0 .
MESSAGE : S000(ZMSSG) WITH 'Data not available for this entry'.
ENDIF .
Regards,
Kittu
Edited by: Kittu on Feb 1, 2010 7:51 AM -
I need to know how to "compress" the Folder Tree. The File folders are moving to the right and out of sight in Lightroom 5.
A couple of suggestions that may help:
- Make sure you've made the left-hand column as wide as possible by grabbing the divider between the column and the Library grid view.
- You can hide a parent folder from the display by right-clicking it and selecting Hide This Parent. This will shift all the child folders to the left. -
How's compress the edge file?
how's compress the edge file?
You can't.
The best you can do is pre-plan your project.
- use compressed images;
- use less dependency on local font or script references and use CDN or available web services instead;
Just a few thoughts
hth
Darrell -
FInvoice How to add the SOAP frame thru XSLT transform
Dear All,
i have the following problem i have implemented as xslt codeto send data from SAP Idoc invoic to WS Finvoic .
the coding looking as following :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output encoding="ISO-8859-1"/>
<xsl:template match="/">
<!-- Create SOAP-Envelope -->
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
<!-- Create Header Container -->
<SOAP-ENV:Header>
<eb:MessageHeader xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd" SOAP-ENV:mustUnderstand="1" eb:id="">
<eb:From>
<eb:PartyId>
<xsl:value-of select="Finvoice/SellerOrganisationUnitNumber"/>
</eb:PartyId>
<eb:Role>Sender</eb:Role>
</eb:From>
<eb:From>
<eb:PartyId>
<xsl:value-of select="Finvoice//SellerBic"/>
</eb:PartyId>
<eb:Role>Intermediator</eb:Role>
</eb:From>
<eb:To>
<eb:PartyId>
<xsl:value-of select="Finvoice//InvoiceRecipientAddress"/>
</eb:PartyId>
<eb:Role>Receiver</eb:Role>
</eb:To>
<eb:To>
<eb:PartyId>
<xsl:value-of select="Finvoice//InvoiceRecipientIntermediatorAddress"/>
</eb:PartyId>
<eb:Role>Intermediator</eb:Role>
</eb:To>
<eb:CPAId>yoursandmycpa</eb:CPAId>
<eb:Service>Routing</eb:Service>
<eb:Action>ProcessInvoice</eb:Action>
<eb:MessageData>
<eb:MessageId>
<xsl:value-of select="Finvoice//SellerReferenceIdentifier"/>
</eb:MessageId>
<eb:Timestamp>
<xsl:value-of select="Finvoice//InvoiceDate"/>
</eb:Timestamp>
</eb:MessageData>
</eb:MessageHeader>
</SOAP-ENV:Header>
<!-- Create Body -->
<SOAP-ENV:Body>
<eb:Manifest eb:id="Manifest" eb:version="2.0">
<eb:Reference eb:id="Finvoice" xlink:href="1009">
<eb:schema eb:location="http://www.finvoice.info/yrityksen_verkkolasku/ladattavat/Tekniset tiedostot/schemat/Finvoice.xsd"/>
</eb:Reference>
</eb:Manifest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<!-- Add Finvoice msg. as Payload Container-->
<xsl:text disable-output-escaping="yes">
<?xml version="1.0" encoding="ISO-8859-15"?>
</xsl:text>
<xsl:text disable-output-escaping="yes">
<!DOCTYPE Finvoice SYSTEM "Finvoice.dtd">
</xsl:text>
<xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="Finvoice.xsl"</xsl:processing-instruction>
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet
My problem is that I don't know how to add the doctype part via xslt:
<?xml version="1.0" encoding="ISO-8859-15"?>
<!DOCTYPE Finvoice SYSTEM "Finvoice.dtd">
could sombody give me input concerning this
Thank in advace.
Best regards !Hi,
I don't know if I completely understand your requirements,
however, if you have the field DocType in your Idoc Structure Message, like follow:
<EDI34243 doctype="XXX"/>
You can use:
<xsl:value-of select="@doctype"/> -
How to send the SOAP Fault Message to the Web Service Consumer
Hi,
I have configured SAOP to Proxy Syncronous Scenario in PI 7.1 and using XML Validation in Adapter Engine to Validate the Structure of the Message Payload.The scenario is working fine.When some of the Filed's Length increses the maxLength specified in the Data Type . We are getting the Following error.
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: XML Validation for payload with root element name MT_Out_CustomerMaster_FPMReq , target namespace http://Pegasystems.com/I06_Customers Failed!Errors Encountered During Parsing
1.cvc-maxLength-valid: Value '123456789' with length = '9' is not facet-valid with respect to maxLength '8' for type 'null'.
2.cvc-type.3.1.3: The value '123456789' of element 'CompanyCode' is not valid.
3.cvc-maxLength-valid: Value 'asdf' with length = '4' is not facet-valid with respect to maxLength '1' for type 'null'.
4.cvc-type.3.1.3: The value 'asdf' of element 'OperationType' is not valid.
at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1164)
My question is How does the Web Service Consumer can handle this Soap Server Error in the SOAP Fault.Or How can we provide a specific information like 'The value '123456789' of element 'CompanyCode' is not valid.It exceeds the Maximum Length'.
I read this /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client blog .Where it is mentioned that the Web Service Consumer can handle while calling the Web Service.Is there any other solution?
Kindly appreciate your help.Thank You Stefan for your kind reply.
So you mean to say if we use the XML Validation .we cannot provide proper error information to the calling Web Service Consumer .And While calling a Web Service they cannot Extract the Exact Message in the Text Filed(<text>) present under the Detail Element (<detail>) in the <SOAP:Fault> node. as
<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: XML Validation for payload with root element name MT_Out_CustomerMaster_FPMReq , target namespace http://Pegasystems.com/I06_Customers Failed!Errors Encountered During Parsing
1.cvc-maxLength-valid: Value '123456789' with length = '9' is not facet-valid with respect to maxLength '8' for type 'null'.
2.cvc-type.3.1.3: The value '123456789' of element 'CompanyCode' is not valid.**
3.cvc-maxLength-valid: Value 'asdf' with length = '4' is not facet-valid with respect to maxLength '1' for type 'null'.
4.cvc-type.3.1.3: The value 'asdf' of element 'OperationType' is not valid.
That is why we have to use the Fault messages and Field Lengths has to be Validated in the Server proxy.
Please Correct me If I am wrong. -
How to set the SOAP Header while publishing to Queue in the mediator
Hi,
I am trying to publish the message to a JMS AQ, from the Mediator service in the 11g Soa Suite. I want to add some properties as SOAP Header to the message and send it to the JMS AQ. I have seen the mediator process calling BPEL process, passing the SOAP Header values. In the BPEL process, we have the section <soap:binding> inside that I can give the <soap:header>and set the values.
Could any one tell me how to do this in Mediator service which is calling the JMS AQ using adapter?
Thanks,The solution in this thread is for VS .NET as this is the forum for CR in .NET.
With Foxpro, I suspect you want to create a new thread in the SAP Crystal Reports - Legacy SDKs forum.
Make sure you specify the exact version of CR used.
- Ludek -
Missing Namespace with the SOAP msg sent by C#
Hi All,
The wsdl file is generated by SAP XI. I used the XMLSpy to test it and get successful response.
Then I used wsdl.exe of .net 2.0 sdk to generate the C# proxy class, and use csc.exe to compile it to a dll, and then refer it in the project. After sent the soap message by C#, the XI shows the message is wrong, then I compare this soap envelop body with the one I sent by the XMLSpy as follow:
C#:
<MT_PP_014_PrdOrderGoodsRcv xmlns="http://mycompany.com/xi/sap/system/pp">
<content>
</content>
</MT_PP_014_PrdOrderGoodsRcv>
XMLSPY:
<m:MT_PP_014_PrdOrderGoodsRcv xmlns:m="http://mycompany.com/xi/sap/system/pp">
<content>
</content>
</m:MT_PP_014_PrdOrderGoodsRcv>
so it is the namespace, according the xml generated by C#, the MT_PP_014_PrdOrderGoodsRcv element isn't inlucded in the namespace http://mycompany.com/xi/sap/system/pp, which cause the error.
Anyone know how to fix it?
Thanks and B'Rgds,Hi YiNing,
the message created by C# is indeed wrong.
Check that in XMLSpy message, the default namespace is never set and that the message namespace is set to prefix "m" and that only the root tag is included in this namespace. All the other tags have no namespace (since they are not attached to any namespace prefix) or have the default namespace, which was not set.
On the other hand, in the C# message, the default namespace is set in the root tag. The root tag is related to the default namespace (it has no prefix) and hence it has the proper namespace. However, the other tags are also related to the default namespace (no namespace prefix) which was set. So these other tags are the erroneous ones.
Try to check that in your proxy, but it seems like a bug in the proxy generator application.
Just as a test, send the message from C# in a request from XMLSpy (replace the automatically generated message inside SOAP Body). The same error would be expected.
Also as a test, send this message in XMLSpy:
<MT_PP_014_PrdOrderGoodsRcv xmlns="http://mycompany.com/xi/sap/system/pp">
<content xmlns="">
</content>
</MT_PP_014_PrdOrderGoodsRcv>
Regards,
Henrique. -
How to get the soap request for the particular operations in CRM
Hi friends,
We got the wsdl files of different modules from the crm(Oracle CRM on demand). We converted the wsdl files to java classes using axis1.4 wsdl2java tool.Now all create,update,download,lookup operations are implemented in java using the generated classes and they are working properly with the client stub.Now the problem is how can we get the soap request and response of particular operations that we submitted to CRM .The request and response should get by using java code.We are looking no tool for the soap request/response. We are working in Eclipse IDE.
thanks in advance...Refer the link. It might tellsa about attaching to transport request but using the way you can find also -
Re: How To Transport STANDARD TEXTS??
Regards,
Amit
Reward all helpful replies -
I am trying to call a web service using apex_web_service.make_request function.
It works fine when all the parameters are correct. However, when something is wrong in the request XML, it throws an exception instead of returning the soap:fault message:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1369
ORA-29269: HTTP server error 500 - Internal Server Error
ORA-06512: at "APEX_040200.WWV_FLOW_WEBSERVICES_API", line 130
ORA-06512: at line 37
I need to get back the soap:fault and parse it to display a proper error message to the users (e.g. what was wrong with the input), yet the call throws an exception instead of returning it.
I am trying the exact same request from soapUI and it returns me the soap:fault below:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Fault occurred while processing.</soap:Text>
</soap:Reason>
<soap:Detail>
<ns1:RegisterFault xmlns:ns1="http://www.exchangenetwork.net/wsdl/register/1">
<description xmlns:ns2="http://www.exchangenetwork.net/wsdl/register/1">The security token has expired.</description>
<errorCode xsi:type="ns2:RegisterErrorCode" xmlns:ns2="http://www.exchangenetwork.net/wsdl/register/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">E_TokenExpired</errorCode>
</ns1:RegisterFault>
</soap:Detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
How do I get this back from APEX?
Thanks!Hi,
I've just run into this.
If the webservice returns a fault, such as:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>INVALID_REQUESTER_INFO</faultstring></soap:Fault></soap:Body></soap:Envelope>
then the user gets presented with an unfriendly error message and there's no chance to output a more friendly one.
The response above is seen when testing the webservice, when run from the Form/Report page, we get something like:
soap:ServerINVALID_REQUESTER_INFO
Contact your application administrator.
OK
When OK button is clicked everything is rolled back and we don't even get the fault XML.
It would be good if Apex could be optionally set to not give the unfriendly messages, so that we could code such a message ourselves.
Unless anybody has a workaround for this, I guess that I'll have to see if I can code this in PLSQL.
Regards,
Chris -
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 -
How to compress the requests selectively
Hi Gurus,
i have 4 requests , i would like to compress the 2dn one
if i compress 2nd request 00 to 2 request will be compressed, but i don't want like that i want compress the
2nd requet only not from 00 to 2
how can i do that ,
thanks
Anilhi Shreya,
The latest requests are related to Inverty management i
i.e BF(goods movements) and UM(Stock revalution)
i have to compress these(BFandUM) without marker update
if i compress the requests, it will compress 00 to the latest request,
this nomarker update will effect the older request, why because they are not compressed yet.
wat i have to doo,
Anil -
How to compress the frame/buffer . Encoder ???
I have get the frame/buffer by using codec. (FrameAccess.java)
I found the buffer is too large,so I want to compress them .
How can I do it ?? could you guys give me a solution ??
Thankscoutinue
After compressing the frame/buffer, I wrap them (aout 1 second) as a package, and then transfer the package by UDP.
SO, I have to compress the frame/buffer. -
How to populate the SOAP Header in JCD/BP while consuming WebService?
Hello,
I am trying to invoke a external webservice through both JCD/BP in JCAPS513 and as per wsdl defination we need to send user and token information in the SOAP Header. When I imported the WebService defination into the JCDP/BP, I do not see message part corresponding to SOAP Header. Can anyone help me here?
Here is the WSDL message, operation & binding details:
<wsdl:operation name="GetOrderID"> <wsdl:operation name="GetOrderID"> <wsdl:message name="GetOrderIDSoapIn">
<wsdl:part name="parameters"
element="tns:GetOrderID"/>
</wsdl:message>
<wsdl:message name="GetOrderIDSoapOut">
<wsdl:part name="parameters"
element="tns:GetOrderIDResponse"/>
</wsdl:message>
<wsdl:message name="GetOrderIDWebServiceCredential">
<wsdl:part name="WebServiceCredential"
element="tns:WebServiceCredential"/>
</wsdl:message>
<wsdl:input message="tns:GetOrderIDSoapIn"/>
<wsdl:output message="tns:GetOrderIDSoapOut"/>
</wsdl:operation>
<soap:operation soapAction="http://xxxxxx.xxxx.xxx/V2/GetOrderID"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
{color:#ff0000} *<soap:header message="tns:GetOrderIDWebServiceCredential"*
* part="WebServiceCredential"*
* use="literal"></soap:header>*{color}
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>Hi Ganesh,
Please go through this link.
http://www.sapag.co.in/SAP-XI-SOAP-Adapter-FAQ'S.html
I think this would be helpful for you..
Reward points if useful,
Swamy Kunche -
How to modify the soap header of ebxml control?
I need to change the soap header information of the ebxml control
from
<eb:CPAId>http://www.openuri.org/cpa</eb:CPAId>
to
<eb:CPAId>MyString</eb:CPAId>
and I want to add some additional information to the header such as the wsse feature
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/12/utility">
<wsse:UsernameToken>
<wsse:Username>1234</wsse:Username>
<wsse:Password>5678</wsse:Password>
<Organization>abc</Organization>
<Domain>DEFAULT</Domain>
</wsse:UsernameToken>
</wsse:Security>
Does anyone know where I can change the type value?
Thanks, KunYour code works. But if I place the TextInput in the formItem
and form tags, the Y value becomes 0. You can try this one:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Form paddingBottom="0" paddingTop="0"
paddingRight="0">
<mx:FormItem label="Title:">
<mx:TextInput width="275" id="newSongTitle"/>
</mx:FormItem>
<mx:FormItem>
<mx:Button id="submitSongData" label="Add Song"
width="150"/>
</mx:FormItem>
</mx:Form>
<mx:Text text="{newSongTitle.x}" width="322"/>
<mx:Text text="{newSongTitle.y}" width="322"/>
<mx:Button label="set Y" click="{newSongTitle.y =
newY.value}"/>
<mx:NumericStepper id="newY" value="50" minimum="0"
maximum="400"/>
</mx:Application>
Maybe you are looking for
-
Are you holding my phone number hostage now?!
I recently switched back from a temporary iPhone4 to my Samsung Galaxy that insurance reiumbursed for me. I love the samsung phone but now I am not able to text with contacts who have iphones. I have been reading about this problem on many forums and
-
Virtual PC 7.0.2 not working
I have a Mac OS X 10.4.11, and Virtual PC had been fine since I got it in July 2007. I hadn't used it for a while, and now when I need it to install an update for a flash drive, the application opens but suddenly "quits unexpectedly". When I try to r
-
IMac Not Saving Settings...
I set my Expose button to my Mouse Button 4 for my personal use, but every time I restart my computer I have to go back into settings and reset this expose button to Mouse Button 4. How can I make sure this saves my settings and doesn't reset everyth
-
My wish for next christmas would be to be able to capture video AND work on another project simultaneously, I can capture and surf the net, work in DVDSP or other apps, Windows can have two instaces of an application open at the same time, why not wi
-
Need to query on all enabled computer accounts that have a particular user account present in the local Administrators group. Ldap query is best, because not all our machines have SCCM client Thanks for any help you can provide. Lisa