Invalid context when using Quartz

I created a class that extends UIView. I added the QuartzCore framework but for some reason this doesn't work. I get errors like the following:
<Error>: CGContextSetStrokeColor: invalid context
<Error>: CGContextSetRGBFillColor: invalid context
@implementation MyQuartzExample
- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
// Initialization code
return self;
-(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
UITouch *touch = [touches anyObject];
CGPoint p = [touch locationInView:self];
[self makeCircleAt:p withDiameter:100.0f withColor:[UIColor redColor]];
- (void)drawRect:(CGRect)rect {
// Drawing code
- (void)makeCircleAt:(CGPoint)center withDiameter:(float)diameter withColor:(int)myColor
float radius = diameter * 0.5;
CGRect myOval = {center.x - radius, center.y - radius, diameter, diameter};
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetStrokeColor(context, myColor);
CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 1.0);
CGContextAddEllipseInRect(context, myOval);
CGContextFillPath(context);
- (void)dealloc {
[super dealloc];
@end

Oops, too much Java programming (extending is the equivalent of subclassing).
I thought that drawRect was called automatically but when I touch the screen the point isn't updated.
-(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
UITouch *touch = [touches anyObject];
center = [touch locationInView:self];
- (void)drawRect:(CGRect)rect {
float diameter = 100.0f;
UIColor *myColor = [UIColor redColor];
float radius = diameter * 0.5;
CGRect myOval = {center.x - radius, center.y - radius, diameter, diameter};
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetStrokeColor(context, myColor);
CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 1.0);
CGContextAddEllipseInRect(context, myOval);
CGContextFillPath(context);
And anyone know an easy way to draw an arc? The compiler doesn't recognize NSBezierPath for some reason and I have no idea what framework it might be in.

Similar Messages

  • Setting a deployment context when using the embedded OC4J

    I'm trying to debug a servlet using the embedded OC4J server. I have a simple project that includes a servlet source file and and a web.xml file. The web.xml file defines context
    parameters that I want the servlet to read and use when it is deployed. However I don't know
    how to get JDeveloper to set up the servlet context on the debugging environment to use the
    contents of the web.xml file. Could anyone tell me how to do this? I cannot see how to
    do this from the help files.
    Many thanks in advance

    The trick is to ensure that you use a 'Project with Web Module' rather than
    'Empty Project' and then add a new 'HTTP Servlet'. When you do this
    JDeveloper automatically creates a web.xml file. You can add context
    parameters, or practically any other configuration items by right clicking
    on the web.xml tree node inthe system navigator and selecting settings.
    The web.xml file is saved into the directory specified by the 'HTML Root Directory' on the 'Input Paths' panel in the project settings dialog.

  • Question about static context when using classes

    hey there.
    i'm pretty new to java an here's my problem:
    public class kreise {
         public static void main (String[] args) {
             //creating the circles
             create a = new create(1,4,3);
             create b = new create(7,2,5);
             System.out.println(a);
             System.out.println(b);
             //diameters...unimportant right now
             getDiameter a_ = new getDiameter(a.radius);
             getDiameter b_ = new getDiameter(b.radius);
             System.out.println(a_);
             System.out.println(b_);
             //moving the circles
             double x = 2;
             double y = 9;
             double z = 3;
             a = create.move();
             System.out.println(a);
    }creating a circle makes use of the class create which looks like this:
    public class create {
        public double k1;
        public double k2;
        public double radius;
        public create(double x,double y,double r) {
            k1 = x;
            k2 = y;
            radius = r;
        public create move() {
            k1 = 1;
            k2 = 1;
            radius = 3;
            return new create (k1,k2,radius);
        public String toString() {
        return "Koordinaten: "+k1+" / "+k2+". Radius: "+radius;
    }now that's all totally fine, but when i try to usw create.move to change the circles coordinates the compiler says that the non-static method move() can't be referenced from a static context. so far i've seen that my main() funktion MUST be static. when declaring the doubles k1, k2, and radius in create() static it works, but then of course when having created the second circle it overwrites the first one.
    i pretty much have the feeling this is very much a standard beginner problem, but searching for the topic never really brought up my problem exactly. thanks in advance!

    You can't access a non-static method from within a static context. So, you have to call move() from outside of the main method. main has to be static because, in short, at least one method has to be static because there haven't been any objects initialized when the program is started. There are more fundamental problems than with just the static context issue.
    I'm confused by your code though. You call create.move(), but this would only be possible if move() was static, and from what I see, it's not. Now that's just one part of it. My second issue is that the logic behind the move() method is very messy. You shouldn't return a newly instantiated object, instead it should just change the fields of the current object. Also as a general rule, instance fields should be private; you have them as public, and this would be problematic because anything can access it.
    Have you heard of getters and setters? That would be what I recommend.
    Now, also, when you are "moving" it, you are basically creating a new circle with completely differently properties; in light of this, I've renamed it change(). Here would be my version of your code:
    public class CircleTester {
        public static void main (String[] args)
             //Bad way to do it, but here's one way around it:
             new CircleTester().moveCircle();
        private void moveCircle()     //really a bad method, but for now, it'll do
            Circle a = new Circle(1,4,3);
            Circle b = new Circle(7,2,5);
            System.out.println(a);
            System.out.println(b);
            //diameters. Don't need to have a new getDiameter class
            double a_ = a.getRadius() * 2;     //Instead of doing * 2 each time, you could have a method that just returns the radius * 2
            double b_ = b.getRadius() * 2;
            System.out.println(a_);
            System.out.println(b_);
            //move the circle
            a.change(2,9,3);
            System.out.println(a);
    public class Circle {
        private double k1;
        private double k2;
        private double radius;
        public Circle(double x,double y,double r)
            k1 = x;
            k2 = y;
            radius = r;
        public void change(int x, int y, int r)
            k1 = x;
            k2 = y;
            radius = r;
        public String toString()
             return "Koordinaten: "+k1+" / "+k2+". Radius: "+radius;
        public double getRadius()
             return radius;
    }On another note, there is already a ellipse class: http://java.sun.com/j2se/1.5.0/docs/api/java/awt/geom/Ellipse2D.html

  • Setting Apps Context when using Apps Adapter

    Hello,
    I am calling a TCA API using the Apps adapter and it's only pulling data for one org. I updated the wsdl file set up from "Sysdamin" and "System Administrator" to the correct user and responsibility but my bpel process is still only retrieving only one org. Has anybody tried setting context and managed to get it to work?

    I am trying to get customer information using HZ_PERSON_CUST_BO_PUB.GET_PERSON_CUST_BO. I changed the wsdl file as suggested in the following document,
    http://download.oracle.com/docs/cd/E12524_01/integrate.1013/e10536/T430238T430243.htm#aoa_apis_procpartnerlink in the "Prerequisites to Configure PL/SQL APIs" section but didn't work ie my bpel process still couldn't retrieve data for multiple org.

  • DBMS_MONITOR - invalid identifier when used in the body of a package

    NLSRTL      11.2.0.3.0     Production
    Oracle Database 11g Enterprise Edition      11.2.0.3.0     64bit Production
    PL/SQL      11.2.0.3.0     Production
    TNS for IBM/AIX RISC System/6000:      11.2.0.3.0     Production
    I have a database user U1 and the user has been granted the role DBA
    connect u1/<password>@db
    SELECT * FROM user_role_privs;
    The output is:
    U1     CONNECT                             NO  YES  NO
    U1    DBA                                     NO  YES  NO
    U1    EXECUTE_CATALOG_ROLE      NO  YES  NO
    U1    EXEC_SYS_PACKAGES_ROLE   NO  YES  NOIf I execute with the same user U1 call to the package DBMS_MONITOR it works fine:
    begin
      DBMS_MONITOR.SESSION_TRACE_ENABLE(waits => TRUE, binds => TRUE);
    end;
    /If I try to make a call to the package DBMS_MONITOR within the body of a function/procedure/package owned by the same user U1, it fails to compile with the error:
    create or replace procedure trace_proc
    is
    begin
      DBMS_MONITOR.SESSION_TRACE_ENABLE(waits => FALSE, binds => TRUE);
    end trace_proc;
    The compilation fails with error: [Error] PLS-00201 (4: 3): PLS-00201: identifier 'DBMS_MONITOR' must be declaredI tried the same by prefixing the package with "SYS" but it still fails to compile.
    Can you please give some clues why is it happening?
    Thank you

    Verdi wrote:
    NLSRTL      11.2.0.3.0     Production
    Oracle Database 11g Enterprise Edition      11.2.0.3.0     64bit Production
    PL/SQL      11.2.0.3.0     Production
    TNS for IBM/AIX RISC System/6000:      11.2.0.3.0     Production
    I have a database user U1 and the user has been granted the role DBA
    connect u1/<password>@db
    SELECT * FROM user_role_privs;
    The output is:
    U1     CONNECT                             NO  YES  NO
    U1    DBA                                     NO  YES  NO
    U1    EXECUTE_CATALOG_ROLE      NO  YES  NO
    U1    EXEC_SYS_PACKAGES_ROLE   NO  YES  NOIf I execute with the same user U1 call to the package DBMS_MONITOR it works fine:
    begin
    DBMS_MONITOR.SESSION_TRACE_ENABLE(waits => TRUE, binds => TRUE);
    end;
    /If I try to make a call to the package DBMS_MONITOR within the body of a function/procedure/package owned by the same user U1, it fails to compile with the error:
    create or replace procedure trace_proc
    is
    begin
    DBMS_MONITOR.SESSION_TRACE_ENABLE(waits => FALSE, binds => TRUE);
    end trace_proc;
    The compilation fails with error: [Error] PLS-00201 (4: 3): PLS-00201: identifier 'DBMS_MONITOR' must be declaredI tried the same by prefixing the package with "SYS" but it still fails to compile.
    Can you please give some clues why is it happening?
    Thank youBecause access must be granted to objects explicitly, and not via a role, if those objects are to be accessed in a package or procedure.

  • Invalid graphics context when trying to draw by tracking user's finger

    Hi, I hope someone can help please.
    I am trying to write an application that will allow the user to draw on screen using his finger. My goal is to have the drawing consisting of a number of small circles drawn at the touch points. However, whenever I call my method that draws a circle at a specific point, nothing happens as I see the "invalid context" message in the console. I obtain the context in my drawing method using context = UIGraphicsGetCurrentContext();
    Any suggestions as to how to get a valid context please?

    The method is in at least a couple of the example apps.
    You can create your own bitmap and context, and draw to that anytime.
    Then have the desired view's drawRect copy from your bitmap to the views context when it's called (which it will be with a valid context at that time).

  • How to remove an attribute in Context when session is invalidated?

    I set a attribute in the context when i login to my application. When i logoff from my application, i remove the attribute from the context.
    But if i close my browser or encounter some error, then the session is not invalidated. The container waits till the session gets timed out and then it invalidates the session. But the attribute that i had set to the context is still there. The next time i login, i check whether the attribute is still available in context. It is.
    Scenario : Assume that i have a application and if i open some thing eg: model, then i update the attribute "read only" flag in the context as "true", so that no one can edit the model on which i am working on.
    When some other user logs in and tries to edit my model, he will get an error stating that the model is read only. Now if i log off, then i update the read only flag as false, so that some body can edit the same.
    But if i close my browser or if i encounter some error, then i am not making the read only flag as false. So even if i am not worling, still the read only flag is set to true in the context. So no one else can work on the model.
    My question is, is there a way to edit the context attribute, when i abruptly close my browser window? Is there a way to handle the dangling session objects and invalidate them immediately?

    Use the HttpSessionListener to determine when the session is destroyed and remove the attribute then. Be aware that aplication attributes are shared by all sessions and can cause problems in a multi-user environment.

  • Invalid Content-Type value on OC4J 10.1.3.4.0 when using JAX-WS

    Hi all,
    I'm developing web services using JAX-WS on top of OC4J 10.1.3.4.0. I followed the procedure to enable this in the developer guide with success. My web service is running fine but the headers of the HTTP response contains an invalid value for the Content-Type header
    The charset element has the value utf-8" (with the double quote included) which is interpreted as a wrong encoding by the client application.<br />
    Below is the HTTP request and response with the error. (I stripped the soap part for clarity)<br />
    <br />
    POST /mywebservice/ HTTP/1.1<br />
    Content-Type: text/xml;charset=UTF-8<br />
    SOAPAction: "http://soap.exemple.com/mywebservice"<br />
    User-Agent: Jakarta Commons-HttpClient/3.0.1<br />
    Host: behs0054:8888<br />
    Content-Length: 2174<br />
    <br />
    &lt;...&gt; soap message<br />
    <hr />
    HTTP/1.1 500 Internal Server Error<br />
    Date: Fri, 03 Oct 2008 13:10:43 GMT<br />
    Server: Oracle Containers for J2EE<br />
    Connection: Keep-Alive<br />
    Keep-Alive: timeout=15, max=100<br />
    Content-Type: text/xml;charset=<strong>utf-8"
    </strong>Transfer-Encoding: chunked
    &lt;...&gt; soap fault received
    <hr />
    Thanks a lot for your answers,
    Gauthier

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

  • QueryError "It is error for context item undefined when using[err:XPDY0002]

    Hi,
    I a beginner for DB XML with python, below is my script and i have error
    "def next(*args): return _dbxml.XmlResults_next(*args)
    RuntimeError: Error: It is an error for the context item to be undefined when using it [err:XPDY0002], <query>:1:12" when i executed my scripts. Pls advice. Thank you.
    import sys
    from dbxml import *
    from bsddb3.db import *
    class DbXml:
    def createEnvironment(self, home):
    """ Create DBEnv and initialize XmlManager"""
    try:
    environment = DBEnv()
    environment.open(home, DB_RECOVER|DB_CREATE|DB_INIT_LOCK|
    DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN, 0)
    except DBError, exc:
    print exc
    sys.exit()
    try:
    mgr = XmlManager(environment, 0)
    except XmlException, se:
    print se
    sys.exit()
    return mgr
    def closeEnvironment(self):
    """ Close DBEnv environment"""
    environment = DBEnv()
    environment.close()
    def createContainer(self, mgr, containerName):
    """ Create/open a node container"""
    if mgr.existsContainer(containerName) != 0:
    mgr.removeContainer(containerName)
    try:
    return mgr.createContainer(containerName,
    DBXML_TRANSACTIONAL|DBXML_ALLOW_VALIDATION,
    XmlContainer.NodeContainer)
    except XmlException, ex:
    print ex
    sys.exit()
    def putDocument(self, mgr, cont, file, DocName):
    """ put xml document in database"""
    self.docName = DocName
    f = open(file)
    q = f.read()
    f.close()
    try:
    # all Container modification operations need XmlUpdateContext
    uc = mgr.createUpdateContext()
    txn = mgr.createTransaction()
    try:
    docName = cont.putDocument(txn, self.docName,
    q, uc) #, DBXML_GEN_NAME)
    txn.commit()
    except XmlException, ex:
    print ex
    txn.abort()
    txn = mgr.createTransaction()
    doc = cont.getDocument(txn, self.docName)
    name = doc.getName()
    docContent = doc.getContentAsString()
    txn.commit()
    print "Document name: ",name,"\nContent: ",docContent
    except XmlException, inst:
    print inst
    if txn:
    txn.abort()
    def query(self, mgr, cont, queries):
    """ Query"""
    myQuery = r"collection(" + cont + ")" + "/" + queries
    myContainer = mgr.openContainer(cont)
    qContext = mgr.createQueryContext()
    qContext.setEvaluationType(XmlQueryContext.Lazy)
    results = mgr.query(myQuery, qContext)
    for value in results:
    document = value.asDocument()
    name = document.getName()
    content = value.asString()
    print name, ":", content
    if __name__ == "__main__":
    dbxml = DbXml()
    mgr = dbxml.createEnvironment(".")
    cont = dbxml.createContainer(mgr, "test.dbxml")
    dbxml.putDocument(mgr, cont, "C:\Documents and Settings\uidc0998\Desktop\\books.xml", "books.xml")
    dbxml.query(mgr, "test.dbxml", "bookstore/book/title")
    dbxml.closeEnvironment()
    Edited by: user10951778 on Mar 31, 2009 5:47 PM

    Hi rucong.zhao,
    Below is my xml, may i know what type of namespace or what i should put for namespace? Thank you.
    <bookstore>
    <book category="COOKING">
    <title lang="en">Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
    </book>
    <book category="CHILDREN">
    <title lang="en">Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
    </book>
    <book category="WEB">
    <title lang="en">XQuery Kick Start</title>
    <author>James McGovern</author>
    <author>Per Bothner</author>
    <author>Kurt Cagle</author>
    <author>James Linn</author>
    <author>Vaidyanathan Nagarajan</author>
    <year>2003</year>
    <price>49.99</price>
    </book>
    <book category="WEB">
    <title lang="en">Learning XML</title>
    <author>Erik T. Ray</author>
    <year>2003</year>
    <price>39.95</price>
    </book>
    </bookstore>

  • When a context node use non-singleton, how to invoke the supply funtion eve

    when a context node use non-singleton, how to invoke the supply funtion everytime the lead selection is changed ?

    Hi wei,
    <b>Non-singleton nodes:</b>
    Web Dynpro allows you to define non-singleton nodes. Each non-singleton node has one node instance for each node element of the parent collection at runtime. The advantage is that each instance can be accessed directly. When using non-singleton nodes, the nodes are only created when the node values are retrieved. This can save resources that otherwise would slow down the performance of the application.
    <b>Supply function:</b>
    The Web Dynpro tools also automatically enhance the corresponding controller class with a supply function including the user coding area contained in it
    Supply functions are implemented as methods of type
    <b>public void supplyChildNodeElements(SomeChildNode node,
                                        SomeParentNodeElement)</b>
    in a Web Dynpro controller (view controller or custom controller). Supply functions and context nodes have a 1..1 relationship, that is, supply functions are specific for individual context nodes. Under certain conditions, supply functions are called by pages in the Web Dynpro runtime environment.
    Hope this helps u,
    Regards,
    Nagarajan.

  • Can context menues be altered/enhanced when using FM REUSE_ALV_GRID_DISPLAY

    Dear ABAPers,
    as I understood it I would need to have access to the instance of class CL_CTMENU and its method ADD_FUNCTION in order to enhance the standard context menu that I get when I right-click into an ALV-Grid. Am I right that this is not possible when I'm using the FM REUSE_ALV_GRID_DISPLAY ?
    Or is there a way to add my own functions to the context menu when using the FM ?
    Thanks in advance for your help
    Andreas

    Dear ABAPers,
    as I understood it I would need to have access to the instance of class CL_CTMENU and its method ADD_FUNCTION in order to enhance the standard context menu that I get when I right-click into an ALV-Grid. Am I right that this is not possible when I'm using the FM REUSE_ALV_GRID_DISPLAY ?
    Or is there a way to add my own functions to the context menu when using the FM ?
    Thanks in advance for your help
    Andreas

  • ESB - Is there a way to set context properties when using esb custom pipeline

    Hi there,
    I have a situation where I am using a oneway wcf sql custom receive adapter to polling db and a two-way solicit response wcf sql send adapter to update the db and receive a result back.
    Now I had got this working by setting the BTS.Operation and BTS.MessageType properties using a custom receive pipeline on the receive port. FOR SOME REASON THESE TWO WERE NOT SET BY THE RECEIVE PORT !!!
    Now I have decided to wrap all that in en ESB itinerary by converting the send port into a dynamic one.  I get the following error:
    Exception of type 'Microsoft.BizTalk.Message.Interop.BTSException' was thrown. 
    Since I am using the ESB pipeleine - ItineraryReceiveXML I am not able to set the BTS.Operation and BTS.MessageType explicitly in a pipeline neither can I derive a pipeline form the ESB pipeline as it's a sealed class.
    So my questions are:
    1. Any idea what the above error could be  ?
    2. Also is there a way I get set context properties using an ESB itinerary as that is the only difference from before, can I do that in a map ?
    Thanks
    Phanindra

    BTS.MessageType is typically set by one of the Disassemblers.
    BTS.Operation has nothing to do with the Receive Port/Location and is set by the Engine only when coming from an Orchestration Port.
    But, you can set any Property in any Stage with a custom Pipeline Component as you've found.
    "Exception of type 'Microsoft.BizTalk.Message.Interop.BTSException' was thrown."
    There's usually a lot more to the stack trace.  You'll have to include the whole thing.
    Finally, what benefit do you expect from adding the ESB layer?  This is pretty trivial with an Orchestration.

  • HT3702 the billing info keeps saying my security code is invalid and when i use a different debit card it says my bank records dont match WTH

    the billing info keeps saying my security code is invalid and when i use a different debit card it says my bank records dont match WTH

    Pease dont' waste your time with that useless article. Carolyn has been warned many times before to stop posting that and waisting people's time.
    This error is a little generic at times and there are a few things that could be happening here. Please put in a ticket here for an advisor to check into details:
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html
    There is no need to keep frustrating yourselfs at the moment.

  • What is the security context when deploying application using SCCM 2012?

    As far as i know when using Group Policy the software is always installed under SYSTEM security context. However i cannot find any information related to SCCM 2012 (and deploying applications) security context.
    Also is there a difference in doing "Install for User" or "Install for Device/System"?
    Thanks

    Thanks. Just to confirm that if you use Group Policy and you Publish the msi for user when the user install it from Add/Remove Programs it is still going to be executed in SYSTEM security context?
    And while we are on this topic - is the above (about the security context in SCCM 2012) written anywhere in some official MS web page?
    Not sure about the context for Intellimirror, but for ConfigMgr it's as Ronnie and Torsten stated. This may be documented somewhere, not sure. Not everything is documented though -- in fact, I'd say less than 25% (probably less than 10%) of everything
    to be known about ConfigMgr is officially documented. Note that this is the same for any product -- there simply are far too many permutations and possibilities to document them all. 
    Jason | http://blog.configmgrftw.com

  • Invalid SOAP action when using java ws WebService

    Hi all,
    this is a slightly more detailed error for a problem i posted recently. I am connecting to a web service that was generated from WSDL. It has two methods "HelloWorld" and "HelloSayFirstName". As defined in the WSDL, the methods use the SOAP action document style. I want to add a cookie to the http header, so after the port is created, I use the following to add the header to the requestContext:
              BindingProvider bindingProvider = (BindingProvider) servicePort;
              Map<String, Object> requestContext = bindingProvider.getRequestContext();
              List<String> cookies = new ArrayList<String>();
              cookies.add("mycookie=mytoken");
              HashMap<String, List<String>> httpHeaders = new HashMap<String, List<String>>();
              httpHeaders.put(HTTPConstants.HEADER_COOKIE, cookies);
              requestContext.put(MessageContext.HTTP_REQUEST_HEADERS, httpHeaders);
    This works when I call the first method (HelloWorld) - the first activity message sent to the server contains the following:
    <HttpRequest>
    <Method>POST</Method>
    <QueryString></QueryString>
    <WebHeaders>
    <Cache-Control>no-cache</Cache-Control>
    <Connection>keep-alive</Connection>
    <Pragma>no-cache</Pragma>
    <Transfer-Encoding>chunked</Transfer-Encoding>
    <Content-Type>text/xml; charset=UTF-8</Content-Type>
    <Accept>*</Accept>
    <Cookie>mycookie=mytoken</Cookie>
    <Host>exampleHost</Host>
    <User-Agent>Java/1.5.0_14</User-Agent>
    <SOAPAction>"http://tempuri.org/IMyService/HelloWorld"</SOAPAction>
    </WebHeaders>
    </HttpRequest>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://exampleHost/WebServices/WCFService/Service.svc</To>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/HelloWorld</Action>
    </s:Header>
    <soap:Body>
    <HelloWorld xmlns="http://tempuri.org/" xmlns:ns2="http://schemas.datacontract.org/2004/07/" xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
    <myValue1>world</myValue1>
    </HelloWorld>
    </soap:Body>
    </soap:Envelope>
    However, after this method, the httpHeaders in the requestContext object have been updated to include the "Accept" header and the "SOAPAction" header - which is the incorrect action! Now, when I call the method "HelloSayFirstName" I get the following:
    <HttpRequest>
    <Method>POST</Method>
    <QueryString></QueryString>
    <WebHeaders>
    <Cache-Control>no-cache</Cache-Control>
    <Connection>keep-alive</Connection>
    <Pragma>no-cache</Pragma>
    <Transfer-Encoding>chunked</Transfer-Encoding>
    <Content-Type>text/xml; charset=UTF-8</Content-Type>
    <Accept>*</Accept>
    <Cookie>mycookie=mytoken</Cookie>
    <Host>exampleHost</Host>
    <User-Agent>Java/1.5.0_14</User-Agent>
    <SOAPAction>"http://tempuri.org/IMyService/HelloWorld"</SOAPAction>
    </WebHeaders>
    </HttpRequest>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://exampleHost/WebServices/WCFService/Service.svc</To>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/HelloWorld</Action>
    </s:Header>
    <soap:Body>
    <HelloSayFirstName xmlns="http://tempuri.org/" xmlns:ns2="http://schemas.datacontract.org/2004/07/" xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
    <dataContractValue></dataContractValue>
    </HelloSayFirstName>
    </soap:Body>
    </soap:Envelope>
    It seems that the SOAPAction in the http header and the soap header is incorrect. Is there any reason why the requestContext would keep hold of the action that was previously called, and not use the new action? I'm stumped here - any help would be greatly appreciated.
    Cheers.

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

Maybe you are looking for