How to prevent the download wsdl in the service client web weblogic

Hello

I have a problem with the service client web weblogic. My workplace:

WebLogic server 8.1
Windows XP SP2
JDK 1.4

I use the weblogic tool to generate the client jar file in the wsdl file.

< target name = "customer generate" >
< wsdl = "ACCESS.wsdl" clientgen
packageName = "xxxxxx.client"
clientJar = "${customer} / ${AccessClient_jar_file}" "
keepGenerated = 'true '.
saveWSDL = 'true '.
/ >

< javac srcdir = "${source}.
DESTDIR = "${client}.
includes = "" * / AccessClient.java ">"
< classpath >
< pathelement path = "${customer} / ${AccessClient_jar_file}" / >
< / classpath >
< / javac >
< / target >

After this, I create a java client to call the service deployed on the server.

Public Shared Sub main (String [] argv)
throws the Exception
{
int transactionId = 100;
int id = 1000;

Of the overall message JAXM plant
System.setProperty ("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
Of the plant of global JAX - RPC service
System.setProperty ("javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");

AccessServicePorts ws = new AccessServicePorts_Impl(argv[0]);
AccessService port = ws.getAccessService ();

Resources - create
Resource = new Resource();
resource.setRES_CD ("Create ResCo");
resource.setCODE_CODE ("code_cod");
resource.setRES_TYPE ("Resource type");
resource.setCOMMON_FIELD (common);
AccessDefaultResult resultItems = port.createResource (resource);
System.out.println ("createResource:" + resultItems);
}

I find that this web service always client issue 2 http requests to call a web service method deployed in the server.

1 reqeust http:

GET/AccessEpol/EpolServiceSoap? WSDL HTTP/1.1
User-Agent: Java/1.4.2_08
Host: 127.0.0.1:8001
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q =. 2
Connection: keep-alive

the result is the wsdl that is downloaded from the server.

2nd http request is the actual web service request.

The question is how could eliminate demand http (1) because it is really useless. I use different customer web service as axis 1.x, axis customer never has the http request to download the wsdl from the server.

I read the weblogic web service document. Do it mentions that put saveWSDL = "true" in the clientgen Ant task. the default value for saveWSDL is true already. I tried saveWSDL = 'false' also. None of them can eliminate the 1st http request.


appreciate for any answer to my question?

I think that you must use the constructor arg - No. of the AccessServicePorts_Impl to use local client jar WSDL.

Please try this and it should fix the problem...

----------------------
AccessServicePorts ws = new AccessServicePorts_Impl();
AccessService port = ws.getAccessService ();
-------------------

Jayesh
Yagna Sys.

Tags: Fusion Middleware

Similar Questions

  • How to prevent the creation of 15000 files for 300 MB each day Firefox

    Firefox creates files of 'file' in C:\Users\LeRicain\AppData\Local\Mozilla\Firefox\Profiles\dnm04rk5.default\cache2
    There are about 10,000 and 20,000 files I have to remove to get about 300 MB of space each day

    How to prevent the creation of these files in Firefox

    Here are the files from cache. Basically, it takes Web sites that access you a lot and records bits of them so they'll load faster the next time you visit them. FOR EXAMPLE if you visit Google.com much, Firefox will save some elements of this page in the cache so that the next time visit you Google.com, it will not have to re - download.

  • How to prevent the automatic updates

    How to prevent the automatic updates which closes the window and restart the computer in Windows 7, Vista OP?  I'm usually right in the middle of something when this happens.

    Hello

    change how to get updates to allow you to choose what you and when you install to stop it happening again

    http://www.bleepingcomputer.com/tutorials/tutorial140.html

    Download updates but let me choose whether to install them - if you select this option, Windows will download the updates on your computer, but not install them automatically. If you want to install updates, then you must install them manually. You should only select this option if you have a reason to not install updates automatically. Only advanced users should use this option.

    Check for updates but let me choose whether to download and install them - if you select this option, you'll be alerted when there are new updates available for download and install. You can then choose to download and install the updates that you want. This option should really be reserved for people who know exactly which updates they need, or those who have little access to the Internet.

  • How to prevent the OSB 11g to change original prefixes xmlns?

    Hello


    Could someone tell me how to prevent the modification of the xml namespace that I have carefully specified in the WSDL and XSD OSB file?

    By example, if I deploy wsdl file beginning with

    <soap:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/"> ...

    Then I get to the BSO for the same wsdl wsdl file is something like

    <WL5G3N0:definitions xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/"/>


    He renames "SOAP" to "WL5G3N0".  This name change similar to most of the other namespace in the WSDL and XSD files xml prefixes.  This OSB causing to use for a purpose limited in our environment.  We simply turn this renaming feature off (or find different technologies of accommodation... ).


    So I hope it's possible to disable and someone knows how, in the community of Oracle users.  Could someone tell me if it is possible and how to disable the prefix renaming in OSB?


    Thank you

    or at least there is no known way to get that off, right?

    I'm not an employee of the Oracle, so I can't say with 100% confidence. I don't know a way, and I'm sure that the path does not exist.

    thinking of using 'engine for stateful service' Oracle SOA for this is very bad...

    It's not so bad. If you do not service calls in the Middle, then BPEL is not to dehydrate State, making it more or less stateless.

    DataContractSerializer seems to be picky and all pending schema corresponding to certain prefix text

    It's weird, but the code generators are a common source of bugs in SOA :-)

    Good luck!

    Vlad @ genericparallel.com

  • How to prevent the add-on compatibility checking whenever he opens Firefox?

    How to prevent the add-on compatibility checking whenever he opens Firefox?

    Which can be a problem with the compatibility.ini file in the Firefox profile folder.
    Try to rename (or delete) the file compatibility.ini in the profile folder of Firefox to see if that helps.

    You can use this button to go to the Firefox profile folder currently in use:

    Alternatively, you can check for problems with preferences.

    Delete possible user.js and files numbered prefs-# .js and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.

  • lovely better does not work with windows vista home Premium what another program removes LSO and HOW to prevent the trackers?

    Question
    better privacy does not work with windows vista home Premium that another program removes LSO and HOW to prevent the trackers? Edit
    Details

    In current versions of Flash you can also do this via the control panel.

    • Control Panel > Flash Player, click on remove and erase data
  • How to prevent the scrambling of text as you type

    How to prevent the scrambling of text as you type

    Hello

    1. What do you exactly mean by interference?

    2 does this happen on all applications such as word, Notepad?

    I suggest you to follow these steps and check if that helps:

    Method 1:
    Start the computer in safe mode and check if the same problem occurs:
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Method 2:
    Try to perform the clean boot and check if it helps:
    http://support.Microsoft.com/kb/929135

    NOTE: When you are finished troubleshooting, make sure that restore you the computer mode normal startup such as suggested in step 7 of the above article.

    Check if that helps.

  • How to prevent the faye error message when I try to install my printer 6510 throu hpofficejet

    How to prevent the faye error message when I try to install my hpofficejet printer 6510 throu on windows 7

    Marcia J Outten-Robinson

    Hi outten7429,

    Follow the steps outlined in the document below.

    http://support.HP.com/us-en/document/c02266980

  • How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above.  This problem occurs when I try to convert a word in a PDF doc.

    How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above? This problem occurs when I try to convert a word in a PDF doc.

    Hi [email protected] ,

    Please try to follow the steps mentioned in this thread with a similar problem: Impossible to open the document. Please check if you have read permissions for the above file.

    Also, let us know the acrobat version you have and the version of the OS on your system.

    Let us know if that helps.

    Concerning
    Sarojini

  • How to prevent the squishing text stacked mode smartphone

    Hello

    How to prevent the squishing of text stacked for smartphone. Not sure if I use the right termonology. In any case, when my < Hello > menu resizes to view smartphone, my menu link throws up in the rest of my text on that line. I am at a loss on what to do about it. Any CSS help would be appreciated.

    http://cupcakemary.skeeterz71.com/_cm_mockup/

    menu-stack.png

    Give your position more line height.  Adjust as required.

    H1 {line-height: 55px}

    Nancy O.

  • How to prevent the opening of the popup submenu of mx:MenuBar during its events mouseOver/rollOver?

    I'm using a component mx:MenuBar with the xml data to a menu. The basic behavior as I see is, first by clicking on the top level menu item (IE on the horizontal bar), pop-up windows submenu opens. Then without clicking anywhere, if I have the mouse on / roll on the horizontal menu bar, the pop-up menus under other top level menus opens.

    This behavior seems to be incompatible. The pop-up submenus should open either on click any element of top-level menu (menu bar horizontally) or only on mouse over / roll of the menu bar.

    I want the pop-up submenus to open only when the click on the top-level menu (menu bar horizontally). So I added event handlers for the passage of the mouse as well as the rollOver events (I don't know which event gets actually produced on hovering over the menu bar horizontally). In the case of managers, I called the Event.preventDefault () method to prevent the default behavior (ie the opening of pop-up submenus).  But nothing works. I felt like I have no control over it.

    How to remove the default behavior and open the pop-up submenus only on the click event of the menu bar?

    Bar menus with no user action:

    1.JPG

    Menu after clicking the 'Flex ': menu bar

    2.JPG

    Bar menu after clicking the 'Flex' menu and hovering above the other top-level menus in the horizontal bar:

    3.JPG

    All,

    Go through the link mentioned to find the answer below.

    f-mxmenubar-Flex-during-its-MOU http://StackOverflow.com/questions/15532911/How-to-prevent-the-Opening-of-pop-up-submenu-o

    This solution works perfectly like what I expected.

  • How to prevent the user open and play a flash game on multiple browser windows at the same time?

    Hi guys,.

    I made a game as the same site: http://www.Netent.com/games/table-games/Texas-Holdem-Pro-series/

    Anyone know how to prevent the user opened and play the game on multiple windows browser both?

    I used the command of flash to embed flash into a page aspx and connection to sql server

    Someone help me, please.

    p/s: Sorry, my English is not good

    You can use localconnection.

  • Problem area: windows update; Error: TRUST_E_NOSIGNATURE (0x800b0100) __Message: installation error prevented the service pack 2 windows systems (KB948465) _

    Problem area: windows update; Error: TRUST_E_NOSIGNATURE (0x800b0100)
    Message: Installation error prevented the service pack 2 windows systems (KB948465)

    http://support.Microsoft.com/kb/956702

    «Error message when you try to use Microsoft Update or Windows Update Web sites to install updates: «0x800B0100»»

    Method for Windows Vista or Windows Server 2008 to resolve this issue, run the tool (Checksur.exe) system update. To do this, follow these steps:

    1. Download and run the system update tool. This tool runs an ad hoc analysis of inconsistencies that might prevent future maintenance operations. For more information about how to download and run the Checksur.exe tool, click on the number below to view the article in the Microsoft Knowledge Base:

      947821 (http://support.microsoft.com/kb/947821/) Description of the update readiness tool for Windows Vista system
    2. Try to install updates again.

    http://support.Microsoft.com/kb/947821/

    "Description of the preparation tool system update for Windows Vista for Windows Server 2008 and for Windows 7"

    If the above solves the problem:

    It comes with Vista, upgrade install and activate Forum.

    You will get the best help for any problem of Update/Service Pack update Vista Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost here, kindly include this error Code, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to start the service in order

    Hello

    I'm new to Hyperion.
    Can someone tell me how to start the service for HFM, planning and Essbase?

    Thanks in advance...

    Han

    Please read the following document:
    http://download.Oracle.com/docs/CD/E12825_01/EPM.111/epm_install_troubleshooting.PDF

  • Firefox Mobile has a kind of key store? How to import the SSL client certificate?

    Firefox Mobile has a kind of key store? How to import the SSL client certificate?

    There is no built-in way to add client certificates to Firefox for mobile. We hope to add this in a future version.

    See this previous question for some (kind of complicated) ways to add client certificates in the current version of Firefox for mobile:
    https://support.Mozilla.com/en-us/questions/786035?s=certificate & As = s

Maybe you are looking for