Document type service

We are trying to create a document type service meaning we want to transmit a document
as is. The webservices documentation states:
"RPC-oriented WebLogic Web service operations use SOAP encoding. Document-oriented
WebLogic Web service operations use literal encoding."
Our service method signature is:
public void processCreditApp(String document)
We change our web-services.xml to include: style="document" in the web-service
element and invocation-style="one-way" in the operation element.
The client generated builds a SOAP message with the body content typed as a string:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<xsd:string>HelloWorld</xsd:string>
</env:Body>
</env:Envelope>
We had expected the content of the body not to be typed with <xsd:string> tags.
Likewise
the generated web service is expecting this typing.
Have the corect assumptions about "literal encoding"? Have we left out any necessary
steps or settings?
We are using WL 7, service pack 2 with the pathch: CR102544_70sp2_v2.jar.

I am not sure I understand. The SOAP body we receive does not have a type designation:
<SOAP:Body>
<diag:Diagnostic
xmlns:diag="http://www.someName.com/namespace.messaging.diag#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<diag:DiagnosticMessage>
     <diag:RequestMessage>HelloWorld</diag:RequestMessage>
</diag:DiagnosticMessage>
     <diag:SourceIdentifier>MySource</diag:SourceIdentifier>
</diag:Diagnostic>
</SOAP:Body>
How can we map types for this?
Steve
"Karthik V" <[email protected]> wrote:
Just by changing "rpc" to "document" in web-services.xml will not help.
You missed <types> and <type-mapping> elements.
I guess your <operation> still has input param type as xsd:string.
You should change this to new type that you create to represent your
document.
Alternatively, you could servicegen with style="document" and take a
look
at the generated web-services.xml.
That will give you a better idea.
/k
"Steve Watson" <[email protected]> wrote in message
news:[email protected]...
We are trying to create a document type service meaning we want totransmit a document
as is. The webservices documentation states:
"RPC-oriented WebLogic Web service operations use SOAP encoding.Document-oriented
WebLogic Web service operations use literal encoding."
Our service method signature is:
public void processCreditApp(String document)
We change our web-services.xml to include: style="document" in theweb-service
element and invocation-style="one-way" in the operation element.
The client generated builds a SOAP message with the body content typedas
a string:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<xsd:string>HelloWorld</xsd:string>
</env:Body>
</env:Envelope>
We had expected the content of the body not to be typed with <xsd:string>tags.
Likewise
the generated web service is expecting this typing.
Have the corect assumptions about "literal encoding"? Have we leftout
any necessary
steps or settings?
We are using WL 7, service pack 2 with the pathch: CR102544_70sp2_v2.jar.

Similar Messages

  • Sales Document Type : Services

    Hi Sap Gurus,
    Can anybody tell me how Sales Document Type Services is handled as a end user & what is the configuration for the same.
    Thanx in advance
    Regards
    Nitin Date

    http://help.sap.com/bp_bblibrary/600/BBlibrary_start.htm
    in above link select H29 building block

  • Revenue Account Determination based on Sales Order Document Type & Service Order Type

    Hi Expert,
    I have Customer Service Module with Resource Related Billing for services attached with SD.
    When DP90 runs sales document debit memo request is created & then debt memo is created.
    I need to configure Revenue Account Determination based on Sales Order Type and also based on Service Order Type.
    I did not see any field catalogue in revenue account determination for order type, For communication structure KOMKCV Header and KOMPCV Item level there is no field for sales order type nor service order type.
    Is it possible to bring in both order types? Can ABAP person do it?
    How to bring these fields?
    Is it possible & recommendd to have service order type filed AURAT for service order into this sturcture?
    Is this configuration is OK acceptable by SAP? If so is there any chnace for issues errors & wrong determination from FI CO view?
    Your valued input is highly appreciated.
    Thanks
    Prakash Parikh

    Hi Prakash,
    Yes, you can certainly add new table fields into the field catalog KOMKCV and KOMPCV and use it during account determination. You will also have to add these new fields in the user exit RV60AFZZ for it to work. I believe you will need ABAPer's help to make this work. The abaper will have to crate a ZZFIELD (ZZAUART for example) and put it in the structure and use the same in the user exit to pass the values.
    In your case, what I am not sure is, are you looking to modify the existing standard tables or creating new ones. My suggestion is to create the new condition tables with these new fields (like document type) after adding it to the field catalog. Only modify the access sequence (KOFI) in such a way that your new tables are access first before it goes into standard tables (or you can adjust it according to your scenario.
    We have done it in our company and it is working fine. Basically what we have done is to create new tables instead of modifying the standard ones. We have adjusted the access sequence in such a way that some of our custom tables are accessed first before the standard SAP tables (C001 to C005).
    I found a similar requirement on SCN. This might help.
    Adding New Field in Account Determination
    Hope this helps.
    Regards,
    Mukund S

  • Example for calling document type service using a XML

    Hi,
    Can anybody give me some pointers to any examples about Document type webservice
    that is passed an XML document? The service expects a custom java object.
    I am running WLS 7.0 with sp2.
    This is what i have done so far:
    I have created a document type web-service with the following signature
    public CustomReturnObject provideService(customParameter) { }
    The 'customParameter' is based on a "CustomParameter.xsd" and 'CustomReturnObject'
    is based on its schema. I ran the "autotype" to generate the java classes for
    the schema.
    Now, we would like to invoke the service by passing an XML document instead of
    calling it by creating instances of "CustomParameter" java class. Also we would
    like to get the XML represented by "CustomReturnObject" in the client program
    instead of the java object.
    Can anybody help?
    Thanks
    Raghu

    The latest version of WLS is 8.1.
    I think the the "endpoint" needs to be string.
    String endpoint =
    http://RASUBR-2K:7001/SubscriptionServicesWS/SSApplicationService.jws;
    Regards,
    -manoj.
    http://manojc.com
    "Raghu Subramaniam" <[email protected]> wrote in message
    news:[email protected]...
    >
    SAAJ did work!
    But it is not working with the BEA client libraries (WLS 8.0 Beta). I amgetting
    the following exception
    exception ejava.lang.IllegalArgumentException: endpoint shou
    ld be String or URL
    java.lang.IllegalArgumentException: endpoint should be String or URL
    atweblogic.webservice.core.soap.SOAPConnectionImpl.call(SOAPConnectionI
    mpl.java:43)
    at TestMain.main(TestMain.java:51)
    Attached is my test file.
    I used the libraries from Sun's web services kit and it works.
    Is it a known problem? Any fixes?
    Raghu
    "manoj cheenath" <[email protected]> wrote:
    SAAJ will work. You can also use DII client with
    generic type mapping. Check this out:
    http://manojc.com/tutorial/sample27/Main.java
    Regards,
    -manoj
    http://manojc.com
    "Raghu Subramaniam" <[email protected]> wrote in message
    news:[email protected]...
    But how did you call the web service. Did you use the stubs in yourclient
    code?
    We don't want to use the stubs generated from "clientgen". Rather wantto
    call
    the service by passing a XML string that adheres to our schema expectedby
    our
    service. Our service is document-style.
    I am trying to use the SAAJ api to generate a SOAPMessage and callthe
    service.
    Anybody has tried this before. Does it work?
    Raghu
    "Mike DeAngelo" <[email protected]> wrote:
    I just did this the first time a few weeks ago, but I had some
    gotchas...
    >>>>
    First, run the autotype ant task against your xsd file to generateyour
    value
    objects (I think you already did this).
    Second, write your java class or EJB to use the value objects asparameter/return
    type. (I think you did this too.) If you are going to invoke anEJB,
    create
    the EJB-Jar file.
    Third, use the servicegen ant task to create the an ear file. Theear
    file will
    contain both the ejb-jar and file webservice.war which is generatedby
    weblogic.
    Fourth, unbundle the ear file, then unbundle the war file. Edit the
    file WEB-INF/web-service.xml
    Add the contents of your original xsd under the <types> element (iftypes
    doesn't
    exist, it should be the first subelement under the root element).Add
    the contents
    of types.xml (generated by autotype) to the <type-mapping> element(It
    should
    be the second element under the root element.
    Rebundle the war file, rebundle the ear file, and deploy it.
    Here is a fragment of the ant stuff...
    <taskdef name="servicegen"
    classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask"/>
    <target name="check-servicegen" depends="stage">
    <uptodate property="servicegen.notRequired"
    targetfile="${stage}/my_webservice.ear"
    srcfile="${stage}/my_ejb.jar">
    </uptodate>
    </target>
    <target name="servicegen"
    depends="check-servicegen"
    unless="servicegen.notRequired">
    <servicegen destEar="${stage}/my_webservice.ear"
    warName="my_webservice.war">
    <classpath refid="compile.classpath"/>
    <service ejbJar="${stage}/my_ejb.jar"
    targetNamespace="http://foo/bar/baz"
    serviceName="process"
    serviceURI="/process"
    generateTypes="False"
    expandMethods="True"
    style="document">
    </service>
    </servicegen>
    </target>
    Mike
    "Raghu Subramaniam" <[email protected]> wrote:
    Hi,
    Can anybody give me some pointers to any examples about Document
    type
    webservice
    that is passed an XML document? The service expects a custom javaobject.
    I am running WLS 7.0 with sp2.
    This is what i have done so far:
    I have created a document type web-service with the following
    signature
    >>>>>
    public CustomReturnObject provideService(customParameter) { }
    The 'customParameter' is based on a "CustomParameter.xsd" and'CustomReturnObject'
    is based on its schema. I ran the "autotype" to generate the javaclasses
    for
    the schema.
    Now, we would like to invoke the service by passing an XML documentinstead
    of
    calling it by creating instances of "CustomParameter" java class.
    Also
    we would
    like to get the XML represented by "CustomReturnObject" in the client
    program
    instead of the java object.
    Can anybody help?
    Thanks
    Raghu

  • In ME51N screen service requisition document type is not comming

    Hi gurus,
    Can anybody help me out ,In production server in me51n ie purchase requisition screen, where we used to select the different purchase requisition order types ,service order is not comming whereas in development server it is comming.In spro i have seen the settings ,in document type service order  item category is attached.
    Please help me its urgent.
    Thanks N Regards,
    Siddhartha Chatterjee

    if that document type is not even coming in the spro settings for the production server then i belive it has not been trasported to the production server and that means there has been some intentions to do that so its beeter to make sure that do u really need that document type or not if u need it then try to transport it from qc

  • How the freight cost are transferred from condition type of shipment cost document to service entry sheet and collected in service PO item

    Dear Experts:
    could you please share with me the knowledge for below topic:
    How the freight cost are transferred from condition type of shipment cost document to service entry sheet and collected in service PO item, because these three objects use three different pricing procedures, and different condition type.
    how did the condition type of service entry sheet know to copy the value of whcih condition type in the pricing procedure of shipment cost document?
    Is this SAP standard function OR there need an enhancement to do that?
    I didn’t find related condition value copy setting in background, could you please share related setting with me? Thank you very much for your kind help!
    Best regards,
    Andy

    Hi, Gopi,
    Glad to see your feedback, but i still have question on your feedback:
    which condition type in the pricing procedure of service entry sheet should know to capture the net value of shipment cost doc? becasue there are so many condition types,
    And i have checked the corresponding condition type (PRSX) of service entry sheet pricing procedure in my SAP system, this is a self-defined condition type, but NO any calculation routine maintained for the condition type (PRSX), how did the condition type (PRSX) know to copy the total cost of shipment cost document?
    Below is the example and another question:
    what the relationship between the pricing procedures at service PO item level and service line item level?
    1. The freight cost in shipment cost document—including used condition type and pricing procedure
    The pricing procedure of shipment cost document
    2. The freight cost in service entry sheet—including used condition type and pricing procedure
    The pricing procedure of service entry sheet--the pricing procedure at service line item level
    3. The freight cost in service PO item—including used condition type and pricing procedure:

  • CHANGE DOCUMENT TYPE IN SERVICE PO

    Hi,
    Do you know if is possible (and how) to change Document Type in PO by ME22N transaction in SERVICE purchase order in which you have created at least one services line item.
    I'm not able to do it because Document type field is grey. If i shall delete all services line items that filed will became white, and so changable.
    Can you help me?
    Thanks.

    Hi,
    But isn't that what I said in the first place?
    the question asked if you could change the document type on a service PO and I said that it couldn't be done?
    I even apologised because I thought that I was wrong when you said that it was possible, but even in 4.6 onwards you cannot change the docuemnt type when it contains service item category lines?
    Steve B

  • I want to post service tax gl (liability) in KZ document type

    Dear all,
    I want to post service tax gl (liability) in KZ document type .in my customization document aplitting is active.it has not allow to post liability gl against bank.I want to post entry
                                Vendor dr
                                 bank charges dr
                                 service tax    dr
                                         to bank
    and amount should adjust aginst bill also .at that time exchange diff should hit
    please tell me the solution

    If the form is going to be used on an iPad, Numbers is the only game in town.
    Numbers is available for Macs only (and iOS devices). Excel is available for PCs and Macs. If you are in a mixed environment of Windows PCs and Macs and you are using this document as an electronic form, Excel is probably the better choice. Otherwise you will need to export to Excel for the PC users then import from Excel to retrieve their data. The import/export process is not perfect. A file that has been exported then reimported will not be the same as the original file. I would assume social services agencies are almost entirely PC-based. 
    If the form is to be printed or turned into a PDF for distribution and use by the social services agencies, either Excel or Numbers would do the job but right now Excel might be the better choice. I would have recommended Numbers '09 but I cannot recommend Numbers 3 for anything thsat requires printing until they give us the layout and printing functionality we used to have (editing in Print View, ability to set margins, etc).
    If everything else in your department/operation/agency is Windows PC and Microsoft Office based, you would be better off sticking with the standard.
    I hope that helps.

  • Urgent: Calling a WebLogic document type Web Service

    We have created an one-way, document type web service that works fine with the
    clientgen client. When sending the same SOAP message to the service from another
    client, it fails with: javax.xml.soap.SOAPException: failed to receive message:
    The other client recieves an HTTP 500.
    The signature for the service method is:
    public void getDiag(Diagnostic diag)
    Diagnostic is a complex type generated by autotype from a schema.
    The failing client builds the SOAP message and sends it to the WebLogic service
    using HttpURLConnection with the request method set to POST and content-type to
    text/xml.

    Is there any error on the server?
    Did the method on the end componet invoked?
    If you are using WLS 8.1, its better to use SAAJ
    instead of plain http url connection. Something like:
    SOAPConnectionFactory factory =
    SOAPConnectionFactory.newInstance();
    SOAPConnection connection =
    factory.createConnection();
    SOAPMessage response =
    connection.call( request, targetURL );
    Here is a working example:
    http://manojc.com/?sample23
    RouterHandler.java
    Regards,
    -manoj
    http://manojc.com
    "Steve Watson" <[email protected]> wrote in message
    news:3ec13eeb$[email protected]..
    >
    We have created an one-way, document type web service that works fine withthe
    clientgen client. When sending the same SOAP message to the service fromanother
    client, it fails with: javax.xml.soap.SOAPException: failed to receivemessage:
    >
    The other client recieves an HTTP 500.
    The signature for the service method is:
    public void getDiag(Diagnostic diag)
    Diagnostic is a complex type generated by autotype from a schema.
    The failing client builds the SOAP message and sends it to the WebLogicservice
    using HttpURLConnection with the request method set to POST andcontent-type to
    text/xml.

  • Creating a Document type Asynchronous Web Services

    Hi,
    I am trying to create a Document typ Asynchronous webservice, following the request/reply pattern. Can anyone point me to some tutorial which explains this, or explain the way the service implementation has to be.
    I want to know how to do the call back or polling faclity in the service implementation.

    Hello,
    The OracleAS Core Web Service stack currently (10.1.3 and earlier) does not have any API/DevModel, to create an Asynch service.
    However you can still use JAX-RPC/SAAJ APIs to manipulate the WS-Addressing information to faciliate the call back. For the implementation itself you will have to choose what fits you the best, for example using JMS under the cover to process the event that will do the call back.
    It is also true that today, we have lot of customers that use Oracle BPEL to create asynchronous services since it is 100% declarative.
    Regards
    Tugdual Grall

  • Service group for particular document type or Purchase Organisation

    Dear Gurus,
    I want to add service group as like Material group. but my objective is to restrict those service group for particular document type or Purchase Organisation??
    Is it possible, if so please advice me the SPRO Settings
    Thanks
    RS

    Hi,
    Basically, this task (both customized table activation via SE11 transaction and user exit activation via SE37 transaction) will be done by ABAPer.  All you should do is to prepare the functional specs document in which you require -
    1)   A generation and activation of the customized table which consists of at least four columns -
         a)   Purchasing Organization;
         b)   Purchasing Document Type;
         c)   Material group/service group
         d)   Purchasing Document Creation Date
    2)   A coding and activation of the related function module (You can use SMOD transaction to view the enhancement MM06E005 to view related user exit).
    Cheers,
    HT

  • Service contracts & document types

    Can anyone provide insight on how to setup document types using P40040 for service contracts. For amortization of fixed price contracts, are you using service contracts

    Hi
    please check this in path
    Spro-Financial accounting-Financial accounting globe setting-tax on sales or on purchase-Basic Setting-Check calculation procedure-Define Procedure
    Here check taxinn procedure you have define use stander TAXINN or create ZTAXINN
    and check which condition has define there, analysis that which goes to g/l account and which goes to inventory
    Regards
    Kailas Ugale

  • SC based on item category  po document type need to be choosen

    Hi I have a require ment
    Based on the SC item  category or ........ etc    the PO document type must be choosen
    ex:  If SC item is   LIMIT  item  then when ur creating the po The PO document type must be zlimit PO  ...some thing like
    same way for service   --- PO doc tyep may be Zsercie PO
    and same way for catalouge - PO doc type may be Z cat PO
    please guide me how to do this
    Basaed on the SC item the PO doc type need to be automaticlly choosen.
    Sekhar babu dasari

    Hi,
    This has been discussed several times on this FORUM..Pls refer the foll threads for more details:
    PR document type in the back end system
    Change "Document Type in R/3 System" in SC
    Changing document type of PO backend
    Re: Change PO number/document type
    BR,
    Disha.
    Do reward points for useful answers.

  • Document Types for PR created in R/3

    WE are implementing SRM classic scenario and in version 4.0.
    WE are creating the Purchase requisition in R/3 systems.
    Now in R/3 we have 2 document types PR01 for Materials and PR02  for services.
    There is a badi BBP_SC_TRansfer_BE with method Group_RQ which can be used to
    segregate the document types PR01 for material and PR02 for services.
    However how do I maintaion the number ranges as in SRM we have only one field where we can maintain the number ranges in cutomising for
    Define Number Ranges per Backend System for Follow-on Documents Here it allows only one Attribute for Purchase Requistion.
    How do I maintain the number ranges in R/3 as external number ranges for the 2  document types PR01  and Pr02.
    Currently I have maintained RQ for Pr01 as external no ranges in R/3.
    Is it that I have to maintain RQ for PR02 also or if separate number range than how do I assgin in SRM.
    Can any one thorw light on this.
    Regards,
    Nimish Sheth

    Dear Vadim
    In Srm we have faclity of maintaining one no range only
    In R/3 I have 2 no ranges for Document type PR01(Materials) and PR02(Services) 
    Is it that I have to keep a common number range with 2  document type in R/3.
    IN SRM                         IN R/3
    No range                       NO range
    RQ - Internl Numbers PR01      RQ - External (PR01)   
                                   AB - External for PR02 
    Now how do I map AB in SRM .
    or Keep RQ for PR01 and PR02  in R/3
    Can you pls throw light on this.
    Regards,
    Nimish Sheth

  • Which document type for special PO

    Hi,
    Which document type should be used if I want to select all receipts on the purchase order placed by an external vendor?
    /Marc

    Hi,
    If your question is correct and if I understand it correctly, you are asking about a document type of PO, used by a Vendor to create for you...and receipts of such POs generated....To find receipts of such document, you wanted document type....if this is correct, it could be one of the follwoing:
    1) Either you have a work around solution if you are using standard SAP R/3 or ECC
    So, in your project there may be a document type created to let the vendor create POs for you ....for which there must  be a document type created...that you only can track it...to track it, there are many ways...you may find those out from first EKKO using user ID provided to external vendors to create POs for you.....Then run those PO#s from the result in ME2N or ME2k etc...by selecting appropriate selection parameters...(for example WE101)
    2) If you are using SCM solution of SAP, it may be supplier collaboration hub
    3) SUS - Supplier Self Service of SRM.....
    In all the above cases, you can still find the result as explained in STEP#1 above
    Regards

Maybe you are looking for

  • Closing Macbook Cover shuts off DVI to VGA display output

    I was told at the Apple Store that I could close the cover on my Macbook with the mini-DVI output to my large screen monitor and still operate my computer via wireless keyboard and the mighty mouse. When I close the Macbook cover the monitor (via the

  • Iphone 3Gs Backup issues - "Unknown" time stamp 01/01/2001 01:00

    Since updating to iTunes 9.2 for windows my phone will not back up or sync. I deleted the old backups thinking this was the problem. Now all I get after the backup running for 20 hours straight is an "Unknown" backup time stamped 01/01/2002 01:00.

  • System Preference: Print & Fax missing

    Hello. When I go to System Preferences > Internet & Network... My Print & Fax icon is missing. I can't select and default my installed printers. How do I retrieve this icon? Thanks

  • HTML Limitations in ACV

    Hi , I am experiencing trouble when it comes to Web content inside Adobe Content Viewer. I am developing simple HTML widgets for my folio and embedding them with Web Content form Folio Overlays panel. Thing is that some very basic Javascript function

  • Gray screen of death.... Please help.

    Wife's 27" iMac is giving us the gray screen of death. I tried everything I could: Command + Option +P + R Holding Option at boot to try Recovery Command + Option + R (Internet Recovery) Holding shift to get to Safe Mode Inserting install disc while