How can a web service  be compliant with the WTK2.1?

I'm using WTK2.1 to develop mobile clients consuming web services.
After published a web service by Apache Axis, I use WTK2.1's Stub Generator to
generate the stub class.
As required by JSR172, I use the "document/literal" encoding style.
The web service class has only one method:
public int newUser(String userName, String password) {
But when I use Stub Generator to generator the stub class, I get the following messages:
************************ Error messages begin *****************************
warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "newUser"
warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "newUser"
warning: ignoring operation "newUser": more than one part in input message
warning: Port "User" does not contain any usable operations
************************ Error messages end *****************************
And following is the wsdl file:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8080/web/services/User" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/web/services/User" xmlns:intf="http://localhost:8080/web/services/User" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://ws.mauction.scucdut.edu.cn" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsdl:types><schema targetNamespace="http://ws.mauction.scucdut.edu.cn" xmlns="http://www.w3.org/2001/XMLSchema"><element name="userName" type="xsd:string"/><element name="password" type="xsd:string"/></schema><schema targetNamespace="http://localhost:8080/web/services/User" xmlns="http://www.w3.org/2001/XMLSchema"><element name="newUserReturn" type="xsd:int"/></schema></wsdl:types>
<wsdl:message name="newUserRequest">
<wsdl:part element="tns1:userName" name="userName"/>
<wsdl:part element="tns1:password" name="password"/>
</wsdl:message>
<wsdl:message name="newUserResponse">
<wsdl:part element="impl:newUserReturn" name="newUserReturn"/>
</wsdl:message>
<wsdl:portType name="User">
<wsdl:operation name="newUser" parameterOrder="userName password">
<wsdl:input message="impl:newUserRequest" name="newUserRequest"/>
<wsdl:output message="impl:newUserResponse" name="newUserResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="UserSoapBinding" type="impl:User">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="newUser">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="newUserRequest">
<wsdlsoap:body namespace="http://ws.mauction.scucdut.edu.cn" use="literal"/>
</wsdl:input>
<wsdl:output name="newUserResponse">
<wsdlsoap:body namespace="http://localhost:8080/web/services/User" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="UserService">
<wsdl:port binding="impl:UserSoapBinding" name="User">
<wsdlsoap:address location="http://localhost:8080/web/services/User"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
So, can anybody tell me how to make the web service be used by the Stub Generator properly?

Hi,
I am new to WTK 2.1 and I am also using Axis to generate WSDL.
one thing I figured out was to remove the namespace info behind all body tags.
for instance in your code, replace:
<wsdlsoap:body namespace="http://localhost:8080/web/services/User" use="literal"/>
by
<wsdlsoap:body use="literal"/>
and it should work. don't ask me why but it worked for me.

Similar Messages

  • How can i use my apple ID with the itune store over my windows laptop

    how can i use my apple ID with the itune store over my windows laptop

    If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
    You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
    And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price.

  • How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    Phone A = phone with information you want duplicated
    Phone B = phone that you want to copy from A
    Backup Phone A.
    Wipe Phone B using these instructions. What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    Phone B should be on the 'Hello' screen. Do not swipe it. Launch iTunes. Plug in Phone B.
    When iTunes asks if you want to set up as new phone or restore from backup, choose restore from backup of Phone A.
    After this setup, any changes to one phone (i.e. adding a contact, downloading an app) will have to be manually duplicated on the second phone, if that is your desire). Making changes to one phone will not affect the other after setup.

  • I plug my computer into my stereo and use the remote app on my iPhone to control it. How can I control my wires iPad with the remote app on my iphone when it is plugged into the stereo? they are different iTunes accounts.

    I plug my computer into my stereo and use the remote app on my iPhone to control it. How can I control my wires iPad with the remote app on my iphone when it is plugged into the stereo? they are different iTunes accounts.

    I think this is probably a sign that your network could be better than it is.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first.

  • How can i define a boolean variable with the condition if i got a specific text on a selected column?

    How can i define a boolean variable with the condition if i got a specific text on a selected column?
    Example:
    my select results:
    [id = 102] [Company = 'Microsoft']
    If i got microsoft in 'Company' i want to my another table with the columnName "Microsoft" get "true".
    Can you help me?

    That is called 2-table UPDATE.
    Example:
    http://www.sqlusa.com/bestpractices2005/updatewithcorrelatedsubquery/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • My friend has an iPhone but doesn't use iMessage. How can I send her regular texts with the new iOS 7 update?

    My friend has an iPhone but doesn't use iMessage. How can I send her regular texts with the new iOS 7 update?

    That's because her phone is recognized in the Apple database as an iPhone.  It should eventually convert to SMS but that's above my level of expertise here so hopefully someone else can come along and help you further.  She could just turn on iMessage and solve the problem. Ha!
    Good luck!

  • How can i creat CRC 32 CHECK WITH THE lookup table as attached.

    how can i creat CRC 32 CHECK WITH THE lookup table.attached
    i creat one,but not match the result number C++ version
    result number C++ version:
    FE 00 18 02 40 1E 65 43 00 03 E8        CRC32=>78 1F E9 06
    FE 01 18 02 40 1E 65 43 00 03 E8        CRC32=>F8 8F 49 61
    FE 02 18 02 40 1E 65 43 00 03 E8        CRC32=>7D FF B4 7F

    due to some reason i can not attach the table.but you can find it herehttp://lavag.org/topic/15325-crc32/,it in the CRC.llb 84.03K =>CRC-32 Table.ctl thanks a lot

  • How can i find my lose iphone with the same apple id i use now

    how can i find my lose iphone with the same apple id i use now

    If you set it up on your iPhone before you lost it then you can sign into your iCloud account on a computer and attempt to locate it.

  • How to Create web service using JMS with PUB/SUB pattern.

    Hi All,
    I need to expose web service using JMS with PUB/SUB pattern.
    if you have any source for this.
    I tried to use @WLJmsTransport annotation but unable to get it done.
    I have configured all JMS server, topic, and connection factory.
    Thanks.

    Hi, I am having web sample web service program which is simple one.
    But I need to Modify this to JMS enable.
    Can any one help me?
    Thanks.

  • How to generate web services for OAS with wsdl extension

    Hi,
    I wanted to know how to generate web services from Oracle Application Server especially with .wsdl extension and with document/literal style.
    I know that earlier there was a tool called SmartConnect from BEA WebLogic.
    But that will work only with ALSB (Aqua logic Service Bus). I guess that ALSB has been renamed as Oracle Service Bus by Oracle after the acquisition of WebLogic. My question is what is the new name for the SmartConnect Tool from WebLogic, which generates wsdl very easily from Oracle database.
    I am unable to know the new name for SmartConnect and how to download that tool from Oracle web site.
    Also, I want to know, whether there is any other way to generate the wsdl from Oracle, if so, please let me know.
    Regards
    Raman

    Hi Jeethandra,
    Please refere to the below link might be some help.
    [http://help.sap.com/saphelp_mdmgds55/helpdata/en/45/069152856241e1e10000000a1553f6/frameset.htm]
    regards
    shankar

  • How can my web service class implement an interface

    I am not able to write :
    webserviceclass implements interface
    I am using servicegen script to convert java file to the web service.But then also,if i add
    javaClassComponents="javaclass1,interface1"
    It is saying interface1 does not have any no arg constructor,so can't used in the web service.
    kindly tell how can i code my web service to implement an interface.

    This forum focuses on end-user support. You can find more web development help on the [http://forums.mozillazine.org/viewforum.php?f=25 mozillaZine Web Development board]. Separate forum, separate registration. Please note the tips in the Sticky Post at the top of the forum before posting.
    That said... Firefox honors the setting autocomplete="off" in the form tag. When this attribute is set, users should not be prompted to save the username/password, and it should not be filled automatically. (Is this what wasn't working??)
    https://developer.mozilla.org/en/How_to_Turn_Off_Form_Autocompletion
    Knowledgeable users can bypass this setting by running a script to strip this attribute. I doubt that very many users would do that, but if people have to log in very frequently, it is more likely to happen. Users also may use add-ons that manage passwords, and those add-ons might not honor the autcomplete="off" setting. I haven't used any such add-ons, so I don't know the situation there.
    I'm sure this isn't completely satisfactory but hopefully it helps to some extent.

  • Can a web service be used as the datasource for a View Object?

    Has anyone used a web service as the datasource for a View Object?
    I am trying to do the same thing as "Publishing BC4J Components as a Web Service" example, except I want to recreate the View Objects on the client so that I can iterate through them and display them on a web page.
    I probably have two choices:
    1. Use the web service as the datasource.
    2. Use a file as the datasource with no data and then populate the View Objects from the XML from the Web Service.
    Please advise.
    Thank you.
    Richard Catlin
    SAIC

    You can adapt the examples provided in the BC4J Toy Store demo for how to build a programmatically-populated view object to create a view object that fetches its data from a web service.
    The methods that you need to override are the same for any kind of programmatically-populated view object.

  • How can I update attribute1 of CSI_ITEM_INSTANCES with the operating org

    Hi
    I am working on Install base (Customer services) module of Oracle E-Business Suite.
    I want to update the CSI_ITEM_INSTANCES.attribute1 with the operating org from a profile option.
    Could anyone help me to figure out how can i do this?
    Is there is any API which can be used to update this table.
    Actually to update this column i wrote a trigger on this table which does the updation of CSI_ITEM_INSTANCE.ATTRIBUTE1 with the operating org from the profile option set at responsibility level but i got the wrong value for this profile option. Because when the data is inserted into this table the user_id, resp_id and resp_appl_id has been changed to sysadmin so i got the value for this user not the user who logged in.
    If anybody has worked on this or done something like this please guide me
    Thanks

    Hi Naga,
    Thanks for the Reply...
    Actually I want to update the org_id in the CSI_ITEM_INSTANCE.attribute1 at the time of creation as well as any update.
    I have looked into the api csi_item_instances_pub. it has two procedures 1) create_instance and 2) update _instance
    I am not be able to understand where can I call these api's to update and creation for an instance and it has several parameters like record type and table type. So I am in a confusion state about the parameters list also. Could you help me to figure out this please?
    And I want to restrict the Installed Base View Page by the value of attribute1(org_id) in CSI_ITEM_INSTANCES. In a thread I saw that this could not be done because this is a JTT/JTF page. Is there any way to customize the Install base view page by org_id?
    Please suggest.
    Thanks
    Munish Mittal

  • How can I replace my iTunes Library with the contents of my iPod, including the playlists?

    I tried transferring the purchases, but it didn't move my playlists over. I have also tried backing my old library up to a disc, and putting it in my new computer, but it still didn't transfer my playlists.
    Is there any way I can transfer my old itunes library from my old computer to my new computer, including the playlists?
    I have heard people talk about replacing itunes with the contents of the ipod, but I'm not sure how to do it.

    check out this post by Zevoneer.
    if you have an iPod Touch, there are PhoneView and iRip.
    as for playlists, check out the posts by Chris CA in this discussion.

  • How can I file a formal complaint with the Apple Online Store Canada?

    I've spoken to two customer service representatives at this point about an order that I cancelled within a half an hour of placing it, as I was initially unaware that the product I purchased would not fit my sister's iPhone. As stated in the Cancelled Order portion of the following page: http://store.apple.com/ca/help/viewing_changing_orders#cancel, I should NOT have been billed for the order. I was billed last Friday and am still yet to receive the refund, despite the fact that the first rep I spoke to advised that my money would be refunded in one day. The statement on the link I provided is completely misleading, as well as the email I received stating that I would not be charged at all. Someone with Apple must amend this statement on the website and the automated emails, as it could be considered legally misleading. I will in no way be pursuing any legal action, as I don't have the time and I'm only out $90.00, but I can't imagine having purchased the MacBook that I wanted to purchase prior to this incident and going through an ordeal like this again. Can someone please advise who I should contact and where I can find their contact information please? I love the apple products that I own and would hate to discontinue my customer relationship with the company.

    Also, please remember that no refund from any store is instantaneous. They will process the refund, probably within 24 - 48 hours. After that, your bank/credit card company has to credit your account....... mine takes at least 3 business days to do so (the banks are very efficient in posting charges, but like to keep the money for a couple of days before giving it back to you - they've been doing that for years).
    Edit: I just checked their return/refunds policy and it includes this:
    Once we receive your item, a refund is initiated immediately. If you canceled a pickup item, and you were billed for it, we initiate your refund immediately after you submit your cancel request. The way your refund is processed depends on your original payment method:
    If you paid by credit or debit card, refunds will be sent to the card-issuing bank within five business days of receipt of the returned item. Please contact the card-issuing bank with questions about when the credit will be posted to your account.
    Products purchased from the Apple Online Store using an Apple Store Gift Card will be refunded to you as an Apple Store Gift Card by email within 3 business days. If you’d like us to mail you an Apple Store Gift Card, ask the representative helping you. You will receive it within 8 business days via United States Postal Service (USPS). If you purchased an item from the Apple Online Store and are returning it to an Apple Retail Store, you'll receive an Apple Store Gift Card by email within 3 business days.
    Note that it states it will be initiated immediately, but  will be sent within 5 business days.
    Read the entire policy here:
    http://store.apple.com/us/help/returns_refund

Maybe you are looking for

  • Please, help me with with Report Engine SDK!

    I am using Report Engine SDK. This is my code: <%@ page import="com.crystaldecisions.sdk.framework.*"%> <%@ page import="com.crystaldecisions.sdk.exception.SDKException"%> <%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore"%> <%@ pag

  • Getting Group Policies to work on Windows 8.1 Enterprise and Windows 2012R2

    Just have a question about applying GPO's to Windows 8.1 Enterprise PC's. We have Windows server 2008 R2 DC's in our environment, so if we want to use the new policy definitions for Windows 8.1 Enterprise, we have to download them and put them in the

  • No streaming from itunes?

    I have iTunes 10.7 on a new 64-bit HP Pavilion desktop running Windows 8 x64. I simply want to stream itunes music to my 3rd-gen Apple TV. Apple TV sees the network, but the network doesn't see the Apple TV. On the Apple TV I can see and play the con

  • How to remove recently deleted photo album off iPhone by iTunes?

    Using iTunes how can i remove the recently deleted photos from my iPhone 4s?

  • Poster frame video photos app

    The poster frame thumbnail for my videos shows up everywhere except the Photos App on the iPad. This a big inconvenience when adding a video to Keynote in the iPad. Anybody know why the Photos app defaults the thumbnail to the opening seen of a video